[RISCV] Add BREV8 to hasAllWUsers in RISCVSExtWRemoval.
authorCraig Topper <craig.topper@sifive.com>
Sun, 13 Nov 2022 19:52:14 +0000 (11:52 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sun, 13 Nov 2022 19:59:33 +0000 (11:59 -0800)
This instruction reverses the bits in each byte. Since we're only
interested in whether the upper 32 bits are used or not, we can
look through them to check their users.

llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp

index 169d186..62154c7 100644 (file)
@@ -198,6 +198,7 @@ static bool hasAllWUsers(const MachineInstr &OrigMI, MachineRegisterInfo &MRI) {
       case RISCV::XORI:
 
       case RISCV::ANDN:
+      case RISCV::BREV8:
       case RISCV::CLMUL:
       case RISCV::ORC_B:
       case RISCV::ORN: