diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2025-04-21 20:15:42 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2025-05-14 07:52:01 -0700 |
commit | 6d2342f5e855358bc8e9a1320b2fddc97d4b4bac (patch) | |
tree | dd72547f3fc3ec4cdbab67bc48868af1a70985a2 /gcc/fortran/dump-parse-tree.cc | |
parent | 4a49450b94f1c6a24a3118577300e291384a1c3a (diff) | |
download | gcc-6d2342f5e855358bc8e9a1320b2fddc97d4b4bac.zip gcc-6d2342f5e855358bc8e9a1320b2fddc97d4b4bac.tar.gz gcc-6d2342f5e855358bc8e9a1320b2fddc97d4b4bac.tar.bz2 |
forwprop: Fix looping after fold_stmt and some forwprop local folds happen
r10-2587-gcc19f80ceb27cc added a loop over the current statment if there was
a change. Except in some cases it turns out changed will turn from true to false
because instead of doing |= after the fold_stmt, there was an just an `=`.
This fixes that and now we loop even if fold_stmt changed the statement and
there was a local fold that happened.
gcc/ChangeLog:
* tree-ssa-forwprop.cc (pass_forwprop::execute): Use `|=` for
changed on the local folding.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions