[llvm] 7e3d0a5 - [NFC][PruneEH] Autogenerate checklines in a few tests for ease of updates

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 03:13:12 PDT 2021


Author: Roman Lebedev
Date: 2021-05-20T13:12:45+03:00
New Revision: 7e3d0a5d0f375307e681a79606baa1008b40f6a4

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

LOG: [NFC][PruneEH] Autogenerate checklines in a few tests for ease of updates

Added: 
    

Modified: 
    llvm/test/Transforms/PruneEH/ipo-nounwind.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/PruneEH/ipo-nounwind.ll b/llvm/test/Transforms/PruneEH/ipo-nounwind.ll
index f618abd1d69ca..aaba318f02a31 100644
--- a/llvm/test/Transforms/PruneEH/ipo-nounwind.ll
+++ b/llvm/test/Transforms/PruneEH/ipo-nounwind.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt -S -prune-eh -enable-new-pm=0 < %s | FileCheck %s
 ; RUN: opt -S -passes='function-attrs,function(simplify-cfg)' < %s | FileCheck %s
 
@@ -5,7 +6,7 @@ declare void @may_throw()
 
 ; @callee below may be an optimized form of this function, which can
 ; throw at runtime (see r265762 for more details):
-; 
+;
 ; define linkonce_odr void @callee(i32* %ptr) noinline {
 ; entry:
 ;   %val0 = load atomic i32, i32* %ptr unordered, align 4
@@ -22,23 +23,34 @@ declare void @may_throw()
 ; }
 
 define linkonce_odr void @callee(i32* %ptr) noinline {
+; CHECK-LABEL: @callee(
+; CHECK-NEXT:    ret void
+;
   ret void
 }
 
 define i32 @caller(i32* %ptr) personality i32 3 {
 ; CHECK-LABEL: @caller(
-; CHECK:  invoke void @callee(i32* %ptr)
-; CHECK-NEXT:          to label %normal unwind label %unwind
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    invoke void @callee(i32* [[PTR:%.*]])
+; CHECK-NEXT:    to label [[NORMAL:%.*]] unwind label [[UNWIND:%.*]]
+; CHECK:       normal:
+; CHECK-NEXT:    ret i32 1
+; CHECK:       unwind:
+; CHECK-NEXT:    [[RES:%.*]] = landingpad { i8*, i32 }
+; CHECK-NEXT:    cleanup
+; CHECK-NEXT:    ret i32 2
+;
 
 entry:
   invoke void @callee(i32* %ptr)
-          to label %normal unwind label %unwind
+  to label %normal unwind label %unwind
 
 normal:
   ret i32 1
 
 unwind:
   %res = landingpad { i8*, i32 }
-         cleanup
+  cleanup
   ret i32 2
 }


        


More information about the llvm-commits mailing list