mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user