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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 08:04:11 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();
----------------
topperc wrote:

Won't this code stop working once you remove the VP intrinsics from the .td file? I don't understand why we are not autoupgrading but not removing?

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


More information about the llvm-commits mailing list