mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Reapply r155682, making constant folding more consistent, with a fix to work
properly with how the code handles all-undef PHI nodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -620,3 +620,13 @@ end:
|
||||
; CHECK-NOT: phi i32
|
||||
; CHECK: ret i1 %z
|
||||
}
|
||||
|
||||
; CHECK: @test27(
|
||||
; CHECK: ret i32 undef
|
||||
define i32 @test27(i1 %b) {
|
||||
entry:
|
||||
br label %done
|
||||
done:
|
||||
%y = phi i32 [ undef, %entry ]
|
||||
ret i32 %y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user