mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
14 lines
363 B
LLVM
14 lines
363 B
LLVM
; With sub reassociation, constant folding can eliminate the uses of %a.
|
|
;
|
|
; RUN: opt < %s -reassociate -instcombine -S | grep %a | count 1
|
|
; PR2047
|
|
|
|
define i32 @test(i32 %a, i32 %b, i32 %c) nounwind {
|
|
entry:
|
|
%tmp3 = sub i32 %a, %b ; <i32> [#uses=1]
|
|
%tmp5 = sub i32 %tmp3, %c ; <i32> [#uses=1]
|
|
%tmp7 = sub i32 %tmp5, %a ; <i32> [#uses=1]
|
|
ret i32 %tmp7
|
|
}
|
|
|