aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2014-12-19 20:55:32 +0100
committerSegher Boessenkool <segher@gcc.gnu.org>2014-12-19 20:55:32 +0100
commit3eb239f48bf0ca6ed149a3f0ff114f55ecaad978 (patch)
treebe4cb40019eebce167073443dc4dd6793e7e4554 /gcc/combine.c
parent1f0858d762302ef84a5c4da165cb3129b83e7082 (diff)
downloadgcc-3eb239f48bf0ca6ed149a3f0ff114f55ecaad978.zip
gcc-3eb239f48bf0ca6ed149a3f0ff114f55ecaad978.tar.gz
gcc-3eb239f48bf0ca6ed149a3f0ff114f55ecaad978.tar.bz2
re PR target/64268 (bootstrap failure (ICE in wide_int_to_tree, at tree.c:1438) on powerpc in libgcc, stage2)
PR target/64268 * combine.c (try_combine): Immediately return if any of I0,I1,I2 are the same insn. From-SVN: r218971
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index ee7b3f9..212da33 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -2588,6 +2588,11 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0,
rtx new_other_notes;
int i;
+ /* Immediately return if any of I0,I1,I2 are the same insn (I3 can
+ never be). */
+ if (i1 == i2 || i0 == i2 || (i0 && i0 == i1))
+ return 0;
+
/* Only try four-insn combinations when there's high likelihood of
success. Look for simple insns, such as loads of constants or
binary operations involving a constant. */