]> git.ipfire.org Git - thirdparty/gcc.git/commit
phi-opt: Disable parts of it for -Og
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 13 Oct 2025 23:47:55 +0000 (16:47 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 14 Oct 2025 06:46:11 +0000 (23:46 -0700)
commit6b5e2f6e5bad9c320c6c40fd51dc70f741d96933
treed348db49429f5583c3acc95f735285a5f8cbbeac
parent05393afc13706fd8db35729398f2017d5feff3c8
phi-opt: Disable parts of it for -Og

While working on the cselim limited part of phiopt, I noticed
that the debugging experience for -Og case would cause jumping
execution in some cases. So this disables the store and operation
factoring parts for -Og since those 2 can cause the line information
of the debugging to be off.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* tree-ssa-phiopt.cc (pass_phiopt::execute): Disable
cselim-limited and factor out operations for -Og.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/tree-ssa-phiopt.cc