projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[Reassociate] As the expression tree is rewritten make sure the operands...
[oota-llvm.git]
/
test
/
Transforms
/
Reassociate
/
no-op.ll
diff --git
a/test/Transforms/Reassociate/no-op.ll
b/test/Transforms/Reassociate/no-op.ll
index fe8d78328966555e7fdc15918ef9d1ef31bf9b9d..7b02df99464b85f0f57ac75a4d54adfbc54866a3 100644
(file)
--- a/
test/Transforms/Reassociate/no-op.ll
+++ b/
test/Transforms/Reassociate/no-op.ll
@@
-27,11
+27,11
@@
define void @test2(i32 %a, i32 %b, i32 %c, i32 %d) {
; The initial add doesn't change so should not lose the nsw flag.
; CHECK-LABEL: @test2(
%a0 = add nsw i32 %b, %a
; The initial add doesn't change so should not lose the nsw flag.
; CHECK-LABEL: @test2(
%a0 = add nsw i32 %b, %a
-; CHECK-NEXT: %a0 = add nsw i32 %
a, %b
+; CHECK-NEXT: %a0 = add nsw i32 %
b, %a
%a1 = add nsw i32 %a0, %d
; CHECK-NEXT: %a1 = add i32 %a0, %c
%a2 = add nsw i32 %a1, %c
%a1 = add nsw i32 %a0, %d
; CHECK-NEXT: %a1 = add i32 %a0, %c
%a2 = add nsw i32 %a1, %c
-; CHECK-NEXT: %a2 = add i32 %
d, %a1
+; CHECK-NEXT: %a2 = add i32 %
a1, %d
call void @use(i32 %a2)
; CHECK-NEXT: call void @use
ret void
call void @use(i32 %a2)
; CHECK-NEXT: call void @use
ret void