]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Remove the redundant expressions in the and<mode>3.
authorDie Li <lidie@eswincomputing.com>
Fri, 14 Jul 2023 02:02:05 +0000 (02:02 +0000)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 14 Jul 2023 06:30:17 +0000 (14:30 +0800)
When generating the gen_and<mode>3 function based on the and<mode>3
template, it produces the expression emit_insn (gen_rtx_SET (operand0,
gen_rtx_AND (<mode>, operand1, operand2)));, which is identical to the
portion I removed in this patch. Therefore, the redundant portion can be
deleted.

Signed-off-by: Die Li <lidie@eswincomputing.com>
gcc/ChangeLog:

* config/riscv/riscv.md: Remove redundant portion in and<mode>3.

gcc/config/riscv/riscv.md

index 7988026d12948b8c036078bed662d1bd819dbd01..c4f8eb9488e9b634077c78bdde2d2cf1cf236c63 100644 (file)
          DONE;
        }
     }
-  else
-    {
-      emit_move_insn (operands[0], gen_rtx_AND (<MODE>mode, operands[1], operands[2]));
-      DONE;
-    }
 })
 
 (define_insn "*and<mode>3"