summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2014-09-17 16:35:09 +0000
committerChad Rosier <mcrosier@codeaurora.org>2014-09-17 16:35:09 +0000
commit307b50b0f66941a5bbdb7761db57d3572124f783 (patch)
tree5e4c4bdd9fb77fd09dcd2eeb85aa86a2bf33c8dd /llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
parent353f358d241330971b9f67f7d02d4b1f59c72951 (diff)
downloadbcm5719-llvm-307b50b0f66941a5bbdb7761db57d3572124f783.tar.gz
bcm5719-llvm-307b50b0f66941a5bbdb7761db57d3572124f783.zip
[IndVarSimplify] Partially revert r217953 to see if this fixes the bots.
Specifically, disable widening of unsigned compare instructions. llvm-svn: 217962
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll28
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll b/llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
index 84738ebe239..a6963948d8b 100644
--- a/llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
+++ b/llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
@@ -136,31 +136,3 @@ for.body:
for.end:
ret i32 %sum.0
}
-
-; CHECK-LABEL: @test4
-; CHECK: zext i32 %b
-; CHECK: for.cond:
-; CHECK: phi i64
-; CHECK: icmp ule i64
-
-define i32 @test4(i32* %a, i32 %b) {
-entry:
- br label %for.cond
-
-for.cond:
- %sum.0 = phi i32 [ 0, %entry ], [ %add, %for.body ]
- %i.0 = phi i32 [ 0, %entry ], [ %inc, %for.body ]
- %cmp = icmp ule i32 %i.0, %b
- br i1 %cmp, label %for.body, label %for.end
-
-for.body:
- %idxprom = sext i32 %i.0 to i64
- %arrayidx = getelementptr inbounds i32* %a, i64 %idxprom
- %0 = load i32* %arrayidx, align 4
- %add = add nsw i32 %sum.0, %0
- %inc = add nsw i32 %i.0, 1
- br label %for.cond
-
-for.end:
- ret i32 %sum.0
-}
OpenPOWER on IntegriCloud