Message ID | mptedr9g165.fsf@arm.com |
---|---|
State | New |
Headers | show |
Series | [pushed] compare-elim: Fix an RTL checking failure | expand |
diff --git a/gcc/compare-elim.cc b/gcc/compare-elim.cc index 5cbd2c027b1..c59dc0cf5a5 100644 --- a/gcc/compare-elim.cc +++ b/gcc/compare-elim.cc @@ -254,7 +254,8 @@ find_flags_uses_in_insn (struct comparison *cmp, rtx_insn *insn) x = PATTERN (insn); if (GET_CODE (x) == PARALLEL) x = XVECEXP (x, 0, 0); - x = SET_SRC (x); + if (GET_CODE (x) == SET) + x = SET_SRC (x); if (GET_CODE (x) == IF_THEN_ELSE) x = XEXP (x, 0); if (COMPARISON_P (x)