[llvm] [IR] Split vector.splice into vector.splice.left and vector.splice.right (PR #170796)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 12 07:31:51 PST 2025


================
@@ -12891,20 +12892,23 @@ void SelectionDAGBuilder::visitVectorSplice(const CallInst &I) {
   SDLoc DL = getCurSDLoc();
   SDValue V1 = getValue(I.getOperand(0));
   SDValue V2 = getValue(I.getOperand(1));
-  int64_t Imm = cast<ConstantInt>(I.getOperand(2))->getSExtValue();
+  uint64_t Imm = cast<ConstantInt>(I.getOperand(2))->getSExtValue();
----------------
lukel97 wrote:

Thanks, fixed in d42db33fdb81303ca876a8e8fd896c4188eece3e. I think getConstantOperandVal is only for SDNodes but I is LLVM IR

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


More information about the llvm-commits mailing list