[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:02:08 PDT 2026
================
@@ -1288,6 +1288,45 @@ static bool consumeNVVMPtrAddrSpace(StringRef &Name) {
Name.consume_front("param");
}
+static bool shouldUpgradeVPIntrinsic(StringRef Name) {
+ // Avoid cttz.elts clashing with cttz.
+ if (Name.starts_with("vp.cttz.elts"))
+ return false;
+ return Name.starts_with("vp.select") || Name.starts_with("vp.add") ||
----------------
topperc wrote:
Should we do a consume_front("vp.") first to shorten all of these strings?
https://github.com/llvm/llvm-project/pull/212490
More information about the llvm-commits
mailing list