[EarlyCSE] Auto-generate check lines for flags.ll.
authorFlorian Hahn <flo@fhahn.com>
Tue, 7 Dec 2021 13:46:13 +0000 (13:46 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 7 Dec 2021 13:46:13 +0000 (13:46 +0000)
The test already checks the full IR. To make updating easier,
auto-generate the check lines.

llvm/test/Transforms/EarlyCSE/flags.ll

index 9d24ade..951ba9d 100644 (file)
@@ -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