Disable add_store_equivs when -fno-expensive-optimizations
commit0b2d3bfa38ccce0dda46aba023f64440cc638496
authorRichard Biener <rguenther@suse.de>
Tue, 24 Sep 2024 12:21:33 +0000 (24 14:21 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 25 Sep 2024 06:59:39 +0000 (25 08:59 +0200)
tree3c0de49c93a157bdeefe204186dcdeaf0c08b332
parentcaf3fe7880e62692da45489dc5bcae069c1555c8
Disable add_store_equivs when -fno-expensive-optimizations

IRAs add_store_equivs is quadratic in the size of the function worst
case, disable it when -fno-expensive-optimizations which means at
-O1 and -Og.

* ira.cc (ira): Gate add_store_equivs on flag_expensive_optimizations.
gcc/ira.cc