Stub out a new lazy value info pass, which will eventually

vend value constraint information to the optimizer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-11-11 00:22:30 +00:00
parent b14b88a40a
commit 10f2d13d58
6 changed files with 108 additions and 0 deletions
+26
View File
@@ -284,3 +284,29 @@ F2:
}
;;; Duplicate condition to avoid xor of cond.
define i32 @test10(i1 %cond, i1 %cond2) {
Entry:
; CHECK: @test10
%v1 = call i32 @f1()
br i1 %cond, label %Merge, label %F1
F1:
br label %Merge
Merge:
%B = phi i1 [true, %Entry], [%cond2, %F1]
%M = icmp eq i32 %v1, 192
%N = xor i1 %B, %M
br i1 %N, label %T2, label %F2
T2:
ret i32 123
F2:
ret i32 %v1
}