ipa/103989 - tame IPA optimizations at -Og
authorRichard Biener <rguenther@suse.de>
Tue, 18 Jan 2022 12:31:56 +0000 (13:31 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 18 Jan 2022 14:43:04 +0000 (15:43 +0100)
commite89b2a270d31d7298d516ae545e256645992c7b9
tree52263b0204531b2d254bc7905f7b15d1156fb60a
parent7402e40a2e2f5eac4489d28ac696e15c88c07f51
ipa/103989 - tame IPA optimizations at -Og

With -Og we are not prepared to do cleanup after IPA optimizations
and dead code exposed by those confuses late diagnostic passes.
This is a first patch removing unwanted IPA optimizations, namely
both late modref and pure-const analysis.

2022-01-18  Richard Biener  <rguenther@suse.de>

PR ipa/103989
* passes.def (pass_all_optimizations_g): Remove pass_modref
and pass_local_pure_const.
gcc/passes.def