[PATCH] D158126: [llvm][NFC] AutoUpgrade l case
Nathan Sidwell via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 15:24:37 PDT 2023
urnathan created this revision.
urnathan added a reviewer: nikic.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
urnathan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The other lifetime and invariant intrinsic checks were unnecessary and recently removed. Hurrah!
Do a bit more cleanup.
Drop unneeded `case 'l':`. Clean up bracing & whitespace.
https://reviews.llvm.org/D158126
Files:
llvm/lib/IR/AutoUpgrade.cpp
Index: llvm/lib/IR/AutoUpgrade.cpp
===================================================================
--- llvm/lib/IR/AutoUpgrade.cpp
+++ llvm/lib/IR/AutoUpgrade.cpp
@@ -1012,7 +1012,6 @@
}
break;
case 'i':
- case 'l': {
if (Name.startswith("invariant.group.barrier")) {
// Rename invariant.group.barrier to launder.invariant.group
auto Args = F->getFunctionType()->params();
@@ -1021,11 +1020,8 @@
NewFn = Intrinsic::getDeclaration(F->getParent(),
Intrinsic::launder_invariant_group, ObjectPtr);
return true;
-
}
-
break;
- }
case 'm': {
// Updating the memory intrinsics (memcpy/memmove/memset) that have an
// alignment parameter to embedding the alignment as an attribute of
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158126.550904.patch
Type: text/x-patch
Size: 762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230816/b3e2227d/attachment.bin>
More information about the llvm-commits
mailing list