[llvm] e40c48d - [llvm][NFC] AutoUpgrade l case

Nathan Sidwell via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 16:57:38 PDT 2023


Author: Nathan Sidwell
Date: 2023-08-17T19:57:22-04:00
New Revision: e40c48dff971d12d1a0070e8e4cd510737aeb4f3

URL: https://github.com/llvm/llvm-project/commit/e40c48dff971d12d1a0070e8e4cd510737aeb4f3
DIFF: https://github.com/llvm/llvm-project/commit/e40c48dff971d12d1a0070e8e4cd510737aeb4f3.diff

LOG: [llvm][NFC] AutoUpgrade l case

Drop unneeded 'case'. Clean up bracing & whitespace.

Approved By: nikic

Differential Revision: https://reviews.llvm.org/D158126

Added: 
    

Modified: 
    llvm/lib/IR/AutoUpgrade.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index 8f4a2ddc0e5257..71a0bb9e6d6278 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -1012,7 +1012,6 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
     }
     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 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
       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


        


More information about the llvm-commits mailing list