[llvm] 9e14ffa - [RISCV] Add PACK/PACKH/PACKW to hasAllWUsers in RISCVSExtWRemoval.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 13 11:44:50 PST 2022
Author: Craig Topper
Date: 2022-11-13T11:34:14-08:00
New Revision: 9e14ffa444cdef7ab6fbebb0a4e61474d3f5df09
URL: https://github.com/llvm/llvm-project/commit/9e14ffa444cdef7ab6fbebb0a4e61474d3f5df09
DIFF: https://github.com/llvm/llvm-project/commit/9e14ffa444cdef7ab6fbebb0a4e61474d3f5df09.diff
LOG: [RISCV] Add PACK/PACKH/PACKW to hasAllWUsers in RISCVSExtWRemoval.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp b/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
index d2e23a172b019..169d1866df583 100644
--- a/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
+++ b/llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
@@ -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
More information about the llvm-commits
mailing list