1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=sccp -S | FileCheck %s
6 define void @test(i1 %c) {
8 ; CHECK-NEXT: br label [[DO_BODY:%.*]]
10 ; CHECK-NEXT: br i1 [[C:%.*]], label [[DO_BODY]], label [[FOR_COND41:%.*]]
12 ; CHECK-NEXT: call void @use(i1 true)
13 ; CHECK-NEXT: br label [[FOR_COND41]]
17 do.body: ; preds = %do.body, %entry
18 br i1 %c, label %do.body, label %for.cond41
20 for.cond41: ; preds = %for.cond41, %do.body
21 %mid.0 = phi float [ 0.000000e+00, %for.cond41 ], [ undef, %do.body ]
22 %fc = fcmp oeq float %mid.0, 0.000000e+00
23 call void @use(i1 %fc)