[llvm] aca7a19 - [EarlyCSE] Auto-generate check lines for flags.ll.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 7 05:46:43 PST 2021


Author: Florian Hahn
Date: 2021-12-07T13:46:13Z
New Revision: aca7a190394292233ab07c6e4dba5f7d4fc5fc3f

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

LOG: [EarlyCSE] Auto-generate check lines for flags.ll.

The test already checks the full IR. To make updating easier,
auto-generate the check lines.

Added: 
    

Modified: 
    llvm/test/Transforms/EarlyCSE/flags.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/EarlyCSE/flags.ll b/llvm/test/Transforms/EarlyCSE/flags.ll
index 9d24ade7d3757..951ba9da13fff 100644
--- a/llvm/test/Transforms/EarlyCSE/flags.ll
+++ b/llvm/test/Transforms/EarlyCSE/flags.ll
@@ -1,10 +1,16 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 ; RUN: opt -basic-aa -early-cse-memssa -S < %s | FileCheck %s
 
 declare void @use(i1)
 
 define void @test1(float %x, float %y) {
-entry:
+; CHECK-LABEL: @test1(
+; CHECK-NEXT:    [[CMP1:%.*]] = fcmp oeq float [[Y:%.*]], [[X:%.*]]
+; CHECK-NEXT:    call void @use(i1 [[CMP1]])
+; CHECK-NEXT:    call void @use(i1 [[CMP1]])
+; CHECK-NEXT:    ret void
+;
   %cmp1 = fcmp nnan oeq float %y, %x
   %cmp2 = fcmp oeq float %x, %y
   call void @use(i1 %cmp1)
@@ -12,8 +18,3 @@ entry:
   ret void
 }
 
-; CHECK-LABEL: define void @test1(
-; CHECK: %[[cmp:.*]] = fcmp oeq float %y, %x
-; CHECK-NEXT: call void @use(i1 %[[cmp]])
-; CHECK-NEXT: call void @use(i1 %[[cmp]])
-; CHECK-NEXT: ret void


        


More information about the llvm-commits mailing list