]> gcc.gnu.org Git - gcc.git/commit
combine: Don't combine if I2 does not change
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 27 Mar 2024 14:09:52 +0000 (14:09 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Wed, 27 Mar 2024 16:02:15 +0000 (16:02 +0000)
commit839bc42772ba7af66af3bd16efed4a69511312ae
treedac744cb78e3335c557c528110f16ddc936f02e1
parentdb41057a94fe6cd556b3beedc0f5088ea485f950
combine: Don't combine if I2 does not change

In some cases combine will "combine" an I2 and I3, but end up putting
exactly the same thing back as I2 as was there before.  This is never
progress, so we shouldn't do it, it will lead to oscillating behaviour
and the like.

If we want to canonicalise things, that's fine, but this is not the
way to do it.

2024-03-27  Segher Boessenkool  <segher@kernel.crashing.org>

PR rtl-optimization/101523
* combine.cc (try_combine): Don't do a 2-insn combination if
it does not in fact change I2.
gcc/combine.cc
This page took 0.056872 seconds and 5 git commands to generate.