[llvm] [RISCV] Remove SEW operand for load/store and SEW-aware pseudos (PR #90396)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 08:55:36 PDT 2024


================
@@ -2980,7 +2982,9 @@ static bool vectorPseudoHasAllNBitUsers(SDNode *User, unsigned UserOpNo,
   bool HasVecPolicyOp = RISCVII::hasVecPolicyOp(TSFlags);
   unsigned VLIdx =
       User->getNumOperands() - HasVecPolicyOp - HasChainOp - HasGlueOp - 2;
-  const unsigned Log2SEW = User->getConstantOperandVal(VLIdx + 1);
+  const unsigned Log2SEW = RISCVII::hasSEWOp(TSFlags)
----------------
michaelmaitland wrote:

Is the assignment here backwards? If hasSEWOp is true then should we get it from `getLog2SEW(TSFlags)`?

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


More information about the llvm-commits mailing list