mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
a99283db0a
As discussed in D86843, -earlycse-debug-hash should be used in more regression tests to catch inconsistency between the hashing and the equivalence check. Differential Revision: https://reviews.llvm.org/D86863
20 lines
524 B
LLVM
20 lines
524 B
LLVM
; 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:
|
|
%cmp1 = fcmp nnan oeq float %y, %x
|
|
%cmp2 = fcmp oeq float %x, %y
|
|
call void @use(i1 %cmp1)
|
|
call void @use(i1 %cmp2)
|
|
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
|