diff options
author | Michael Eager <eager@gcc.gnu.org> | 2017-03-10 00:48:51 +0000 |
---|---|---|
committer | Michael Eager <eager@gcc.gnu.org> | 2017-03-10 00:48:51 +0000 |
commit | e837554452518ca73af4ec64b0468991fdff4f7d (patch) | |
tree | 4c6788a7e3364f5b90dbfd9f6f201d00c15aeca2 /gcc | |
parent | b908f1257603dfdad08f71f46515333639f18d22 (diff) | |
download | gcc-e837554452518ca73af4ec64b0468991fdff4f7d.zip gcc-e837554452518ca73af4ec64b0468991fdff4f7d.tar.gz gcc-e837554452518ca73af4ec64b0468991fdff4f7d.tar.bz2 |
Eliminate unneeded test.
From-SVN: r246020
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/microblaze/microblaze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index fb115e6..d0f86fd 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -3323,7 +3323,7 @@ microblaze_expand_shift (rtx operands[]) || (GET_CODE (operands[1]) == SUBREG)); /* Shift by zero -- copy regs if necessary. */ - if (CONST_INT_P (operands[2]) && (operands[2] == const0_rtx) + if (operands[2] == const0_rtx && !rtx_equal_p (operands[0], operands[1])) { emit_insn (gen_movsi (operands[0], operands[1])); |