mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
26 lines
555 B
LLVM
26 lines
555 B
LLVM
; RUN: opt < %s -loop-rotate -S | FileCheck %s
|
|
; RUN: opt < %s -loop-rotate -enable-mssa-loop-dependency=true -verify-memoryssa -S | FileCheck %s
|
|
|
|
@a = external global i8, align 4
|
|
@tmp = global i8* @a
|
|
|
|
define void @f() {
|
|
; CHECK-LABEL: define void @f(
|
|
; CHECK: getelementptr i8, i8* @a, i32 0
|
|
entry:
|
|
br label %for.preheader
|
|
|
|
for.preheader:
|
|
br i1 undef, label %if.then8, label %for.body
|
|
|
|
for.body:
|
|
br i1 undef, label %if.end, label %if.then8
|
|
|
|
if.end:
|
|
%arrayidx = getelementptr i8, i8* @a, i32 0
|
|
br label %for.preheader
|
|
|
|
if.then8:
|
|
unreachable
|
|
}
|