You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
21
external/llvm/test/Transforms/SimplifyCFG/duplicate-phis.ll
vendored
Normal file
21
external/llvm/test/Transforms/SimplifyCFG/duplicate-phis.ll
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
; RUN: opt < %s -instcombine -simplifycfg -S | grep " = phi " | count 1
|
||||
|
||||
; instcombine should sort the PHI operands so that simplifycfg can see the
|
||||
; duplicate and remove it.
|
||||
|
||||
define i32 @foo(i1 %t) {
|
||||
entry:
|
||||
call void @bar()
|
||||
br i1 %t, label %true, label %false
|
||||
true:
|
||||
call void @bar()
|
||||
br label %false
|
||||
false:
|
||||
%a = phi i32 [ 2, %true ], [ 5, %entry ]
|
||||
%b = phi i32 [ 5, %entry ], [ 2, %true ]
|
||||
call void @bar()
|
||||
%c = add i32 %a, %b
|
||||
ret i32 %c
|
||||
}
|
||||
|
||||
declare void @bar()
|
Reference in New Issue
Block a user