[llvm] [IR] Autoupgrade trivial VP intrinsics to their non-VP counterparts (PR #212490)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 08:09:51 PDT 2026


================
@@ -5125,6 +5166,34 @@ static Value *upgradeConvertIntrinsicCall(StringRef Name, CallBase *CI,
   return nullptr;
 }
 
+static Value *upgradeVPIntrinsicCall(CallBase *CI, IRBuilder<> &Builder) {
+  Value *Rep;
+  auto Opcode = cast<VPIntrinsic>(CI)->getFunctionalOpcode();
----------------
lukel97 wrote:

The plan is to move the relevant cases from the getFunctionalOpcode helper into AutoUpgrade.cpp as the actual intrinsics are removed. There's a lot more files that need to be touched when removing the intrinsics, e.g. all the SelectionDAG plumbing etc., so I figured it was best to leave it to a follow on patch. Happy to do it in this PR if preferred though.

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


More information about the llvm-commits mailing list