aboutsummaryrefslogtreecommitdiff
path: root/gcc/cprop.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-09-11 22:10:53 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-09-13 09:31:06 -0700
commit8ed8c342fba682286159f56d0e53a05db95762a0 (patch)
tree2d13e1fc8225056ca7ff5a0c3f55473bf3a16aed /gcc/cprop.cc
parentb55f5e344c9b2f3667ef176e090c168e0add41f1 (diff)
downloadgcc-8ed8c342fba682286159f56d0e53a05db95762a0.zip
gcc-8ed8c342fba682286159f56d0e53a05db95762a0.tar.gz
gcc-8ed8c342fba682286159f56d0e53a05db95762a0.tar.bz2
Fix factor_out_conditional_operation heuristics for constants
While working on a different patch, I noticed the heuristics were not doing the right thing if there was statements before the NOP/PREDICTs. (LABELS don't have other statements before them). This fixes that oversight which was added in r15-3334-gceda727dafba6e. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-phiopt.cc (factor_out_conditional_operation): Instead of just ignorning a NOP/PREDICT, skip over them before checking the heuristics. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/cprop.cc')
0 files changed, 0 insertions, 0 deletions