[llvm] [RISCV][GISEL] Legalize and post-legalize lower G_INSERT_SUBVECTOR (PR #108859)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 17 12:14:47 PDT 2024


================
@@ -1739,7 +1739,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
     }
 
     if (IndexOp.getImm() != 0 &&
-        Src1Ty.getElementCount().getKnownMinValue() % IndexOp.getImm() != 0) {
+        IndexOp.getImm() % Src1Ty.getElementCount().getKnownMinValue() != 0) {
----------------
topperc wrote:

This needs to be done in a separate patch with its own unit test.

https://github.com/llvm/llvm-project/pull/108859


More information about the llvm-commits mailing list