1 ; RUN: opt -gvn -S < %s | FileCheck %s
5 define void @test1(float %x, float %y) {
7 %cmp1 = fcmp nnan oeq float %y, %x
8 %cmp2 = fcmp oeq float %x, %y
9 call void @use(i1 %cmp1)
10 call void @use(i1 %cmp2)
14 ; CHECK-LABEL: define void @test1(
15 ; CHECK: %[[cmp:.*]] = fcmp oeq float %y, %x
16 ; CHECK-NEXT: call void @use(i1 %[[cmp]])
17 ; CHECK-NEXT: call void @use(i1 %[[cmp]])
18 ; CHECK-NEXT: ret void