brintos

brintos / llvm-project-archived public Read only

0
0
Text · 486 B · 6133b86 Raw
25 lines · plain
1; RUN: opt < %s -passes=loop-rotate -verify-memoryssa -S | FileCheck %s2 3@a = external global i8, align 44@tmp = global ptr @a5 6define void @f(i1 %arg) {7; CHECK-LABEL: define void @f(8; CHECK: getelementptr i8, ptr @a, i32 19entry:10  br label %for.preheader11 12for.preheader:13  br i1 %arg, label %if.then8, label %for.body14 15for.body:16  br i1 %arg, label %if.end, label %if.then817 18if.end:19  %arrayidx = getelementptr i8, ptr @a, i32 120  br label %for.preheader21 22if.then8:23  unreachable24}25