aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2024-07-22 18:01:57 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:45 +0200
commit0b5b178caea0417ff23d0609b1416e3f3e4f6689 (patch)
treec508d126b62a5296b2b9b092824ca886cf5aab39 /gcc/cp
parent082e0faa06b32f765cceb989453d7736ddaee878 (diff)
downloadgcc-0b5b178caea0417ff23d0609b1416e3f3e4f6689.zip
gcc-0b5b178caea0417ff23d0609b1416e3f3e4f6689.tar.gz
gcc-0b5b178caea0417ff23d0609b1416e3f3e4f6689.tar.bz2
Compare loop bounds in ipa-icf
Hi, this testcase shows another poblem with missing comparators for metadata in ICF. With value ranges available to loop optimizations during early opts we can estimate number of iterations based on guarding condition that can be split away by the fnsplit pass. This patch disables ICF when number of iteraitons does not match. Bootstrapped/regtesed x86_64-linux, will commit it shortly gcc/ChangeLog: PR ipa/115277 * ipa-icf-gimple.cc (func_checker::compare_loops): compare loop bounds. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr115277.c: New test.
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions