[RISCV] Add PACK/PACKH/PACKW to hasAllWUsers in RISCVSExtWRemoval.
authorCraig Topper <craig.topper@sifive.com>
Sun, 13 Nov 2022 19:34:06 +0000 (11:34 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sun, 13 Nov 2022 19:34:14 +0000 (11:34 -0800)
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp

index d2e23a1..169d186 100644 (file)
@@ -118,6 +118,9 @@ static bool hasAllWUsers(const MachineInstr &OrigMI, MachineRegisterInfo &MRI) {
       case RISCV::SEXT_B:
       case RISCV::SEXT_H:
       case RISCV::ZEXT_H_RV64:
+      case RISCV::PACK:
+      case RISCV::PACKH:
+      case RISCV::PACKW:
         break;
 
       // these overwrite higher input bits, otherwise the lower word of output