1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Transforms/EarlyCSE/pr33406.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

27 lines
581 B
LLVM

; RUN: opt -early-cse-memssa -S %s | FileCheck %s
; CHECK: define void @patatino() {
; CHECK: for.cond:
; CHECK-NEXT: br i1 true, label %if.end, label %for.inc
; CHECK: if.end:
; CHECK-NEXT: %tinkywinky = load i32, i32* @b
; CHECK-NEXT: br i1 true, label %for.inc, label %for.inc
; CHECK: for.inc:
; CHECK-NEXT: ret void
@b = external global i32
define void @patatino() {
for.cond:
br i1 true, label %if.end, label %for.inc
if.end:
%tinkywinky = load i32, i32* @b
store i32 %tinkywinky, i32* @b
br i1 true, label %for.inc, label %for.inc
for.inc:
ret void
}