1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Transforms/EarlyCSE/instsimplify-dom.ll
Geoff Berry 4a45626e2f [EarlyCSE] Optionally use MemorySSA. NFC.
Summary:
Use MemorySSA, if requested, to do less conservative memory dependency
checking.

This change doesn't enable the MemorySSA enhanced EarlyCSE in the
default pipelines, so should be NFC.

Reviewers: dberlin, sanjoy, reames, majnemer

Subscribers: mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D19821

llvm-svn: 280279
2016-08-31 19:24:10 +00:00

21 lines
351 B
LLVM

; RUN: opt -early-cse -S < %s | FileCheck %s
; RUN: opt -basicaa -early-cse-memssa -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-LABEL: define i32 @fn(