aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-04-10 07:57:03 +0200
committerRichard Biener <rguenther@suse.de>2024-04-10 07:57:03 +0200
commit109f1b28fc94c93096506e3df0c25e331cef19d0 (patch)
tree890b3b82ab29a3948ec1adb8d7083f399a9ba5eb
parent7924e352523b37155ed9d76dc426701de9d11a22 (diff)
downloadgcc-109f1b28fc94c93096506e3df0c25e331cef19d0.zip
gcc-109f1b28fc94c93096506e3df0c25e331cef19d0.tar.gz
gcc-109f1b28fc94c93096506e3df0c25e331cef19d0.tar.bz2
Revert "combine: Don't combine if I2 does not change"
This reverts commit 839bc42772ba7af66af3bd16efed4a69511312ae.
-rw-r--r--gcc/combine.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/combine.cc b/gcc/combine.cc
index 71c9abc..92b8d98 100644
--- a/gcc/combine.cc
+++ b/gcc/combine.cc
@@ -4196,17 +4196,6 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0,
adjust_for_new_dest (i3);
}
- /* If I2 didn't change, this is not a combination (but a simplification or
- canonicalisation with context), which should not be done here. Doing
- it here explodes the algorithm. Don't. */
- if (rtx_equal_p (newi2pat, PATTERN (i2)))
- {
- if (dump_file)
- fprintf (dump_file, "i2 didn't change, not doing this\n");
- undo_all ();
- return 0;
- }
-
/* We now know that we can do this combination. Merge the insns and
update the status of registers and LOG_LINKS. */