rtl-optimization/98863 - fix PRE/CPROP memory usage check
authorRichard Biener <rguenther@suse.de>
Fri, 29 Jan 2021 12:25:49 +0000 (13:25 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 29 Jan 2021 13:01:21 +0000 (14:01 +0100)
commitcb52e59e33845152cef6f9042a142a246e9447f6
treea68198405c71a823e31a75ab595d0f21d1166776
parentf4e426f7bd7df279cb7aaecd91d273d9b7db338d
rtl-optimization/98863 - fix PRE/CPROP memory usage check

This fixes overflow of the memory usage estimate in turn failing
to disable itself on WRF with LTO, causing a few GBs worth of
memory peak.

2021-01-29  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/98863
* gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
HOST_WIDE_INT for the memory estimate.
gcc/gcse.c