You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
parent
a7724cd563
commit
279aa8f685
25
external/llvm/test/Transforms/GVN/rle-nonlocal.ll
vendored
Normal file
25
external/llvm/test/Transforms/GVN/rle-nonlocal.ll
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
; RUN: opt < %s -basicaa -gvn -S | FileCheck %s
|
||||
|
||||
define i32 @main(i32** %p, i32 %x, i32 %y) {
|
||||
block1:
|
||||
%cmp = icmp eq i32 %x, %y
|
||||
br i1 %cmp , label %block2, label %block3
|
||||
|
||||
block2:
|
||||
%a = load i32*, i32** %p
|
||||
br label %block4
|
||||
|
||||
block3:
|
||||
%b = load i32*, i32** %p
|
||||
br label %block4
|
||||
|
||||
block4:
|
||||
; CHECK-NOT: %existingPHI = phi
|
||||
; CHECK: %DEAD = phi
|
||||
%existingPHI = phi i32* [ %a, %block2 ], [ %b, %block3 ]
|
||||
%DEAD = load i32*, i32** %p
|
||||
%c = load i32, i32* %DEAD
|
||||
%d = load i32, i32* %existingPHI
|
||||
%e = add i32 %c, %d
|
||||
ret i32 %e
|
||||
}
|
Reference in New Issue
Block a user