projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use range metadata instead of introducing selects.
[oota-llvm.git]
/
test
/
Transforms
/
IndVarSimplify
/
2009-04-27-Floating.ll
diff --git
a/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll
b/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll
index 3a3117184179ba7699214f25a87701653f67289a..47164d86047e6544f1d96591554f9e7def47a61f 100644
(file)
--- a/
test/Transforms/IndVarSimplify/2009-04-27-Floating.ll
+++ b/
test/Transforms/IndVarSimplify/2009-04-27-Floating.ll
@@
-1,4
+1,4
@@
-; RUN: opt
%s -indvars -S | grep icmp | grep next
+; RUN: opt
< %s -indvars -S | FileCheck %s
; PR4086
declare void @foo()
; PR4086
declare void @foo()
@@
-6,13
+6,14
@@
define void @test() {
entry:
br label %loop_body
entry:
br label %loop_body
-loop_body:
- %i = phi float [ %nexti, %loop_body ], [ 0.0, %entry ]
+loop_body:
+ %i = phi float [ %nexti, %loop_body ], [ 0.0, %entry ]
tail call void @foo()
%nexti = fadd float %i, 1.0
tail call void @foo()
%nexti = fadd float %i, 1.0
- %less = fcmp olt float %nexti, 2.0
+ ; CHECK: icmp ne i32 %{{[a-zA-Z$._0-9]+}}, 2
+ %less = fcmp olt float %nexti, 2.0
br i1 %less, label %loop_body, label %done
br i1 %less, label %loop_body, label %done
-done:
+done:
ret void
}
ret void
}