]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix recursive unswitching regression
authorRichard Biener <rguenther@suse.de>
Tue, 17 May 2022 14:03:59 +0000 (16:03 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 17 May 2022 14:03:59 +0000 (16:03 +0200)
commit88701062f36e51b25b9033598a0cebd2d53d7aed
tree3652b6081352f9cdd21d84a766ded10e26f1998f
parentce7462de861d74e4cf1c81f94dfe8c0a5b49ef8e
Fix recursive unswitching regression

This fixes the recursive unswitching regression by introducing
the ability to track 'handled' as bitmap separately.  It also
fixes the budgeting to properly subtract the original loop size
(the param should probably be changed to a capped scale to not
allow arbitrary relative growth of small loops when there are a
lot of them?)
gcc/testsuite/gcc.dg/loop-unswitch-13.c
gcc/testsuite/gcc.dg/loop-unswitch-16.c
gcc/tree-ssa-loop-unswitch.cc