mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
39f4e8d9cc
This update was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
891 B
LLVM
28 lines
891 B
LLVM
; RUN: opt -loop-reduce -S < %s | FileCheck %s
|
|
;
|
|
; Test SCEVExpander reusing a phi->gep->phi IV when SCEV "wrongly"
|
|
; reports the expression as an IntegerTy.
|
|
|
|
target triple = "x86_64-apple-darwin"
|
|
|
|
; CHECK-LABEL: @test(
|
|
; CHECK: phi
|
|
; CHECK-NOT: phi
|
|
define void @test(i32 %rowStride) ssp align 2 {
|
|
entry:
|
|
%cond = select i1 undef, i32 %rowStride, i32 4
|
|
br label %for.end
|
|
|
|
for.end.critedge: ; preds = %for.end
|
|
br label %for.end
|
|
|
|
for.end: ; preds = %for.end.critedge, %entry
|
|
br i1 undef, label %for.body83, label %for.end.critedge
|
|
|
|
for.body83: ; preds = %for.body83, %for.end
|
|
%ptr.0157 = phi i8* [ %add.ptr96, %for.body83 ], [ null, %for.end ]
|
|
store i8 undef, i8* %ptr.0157, align 1
|
|
%add.ptr96 = getelementptr inbounds i8* %ptr.0157, i32 %cond
|
|
br label %for.body83
|
|
}
|