mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix regression from r151466: an we can't replace uses of an instruction reachable from the entry block with uses of an instruction not reachable from the entry block. PR12231.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
19
test/Transforms/EarlyCSE/instsimplify-dom.ll
Normal file
19
test/Transforms/EarlyCSE/instsimplify-dom.ll
Normal file
@@ -0,0 +1,19 @@
|
||||
; RUN: opt -early-cse -S < %s | FileCheck %s
|
||||
; PR12231
|
||||
|
||||
declare i32 @f()
|
||||
|
||||
define i32 @fn() {
|
||||
entry:
|
||||
br label %lbl_1215
|
||||
|
||||
lbl_1215:
|
||||
%ins34 = phi i32 [ %ins35, %xxx ], [ undef, %entry ]
|
||||
ret i32 %ins34
|
||||
|
||||
xxx:
|
||||
%ins35 = call i32 @f()
|
||||
br label %lbl_1215
|
||||
}
|
||||
|
||||
; CHECK: define i32 @fn
|
Reference in New Issue
Block a user