summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2014-09-17 14:10:33 +0000
committerChad Rosier <mcrosier@codeaurora.org>2014-09-17 14:10:33 +0000
commitbb99f40530be9eee3f461c62436b2b5f723e515b (patch)
tree08f41bb3f2055ddfbc3dbca1a89d110ee3bdfec1 /llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
parentebdf90ca009b6ae97980ee6b43acba3b1638546e (diff)
downloadbcm5719-llvm-bb99f40530be9eee3f461c62436b2b5f723e515b.tar.gz
bcm5719-llvm-bb99f40530be9eee3f461c62436b2b5f723e515b.zip
[IndVarSimplify] Widen loop compare instructions.
This improves other optimizations such as LSR. A sext may be added to the compare's other operand, but this can often be hoisted outside of the loop. llvm-svn: 217953
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll b/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
index 057669277cc..a7023f24314 100644
--- a/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
+++ b/llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
@@ -229,10 +229,11 @@ entry:
; loop and the OR instruction is replaced by an ADD keeping the result
; equivalent.
;
+; CHECK: sext
; CHECK: loop:
; CHECK: phi i64
; CHECK-NOT: sext
-; CHECK: icmp slt i32
+; CHECK: icmp slt i64
; CHECK: exit:
; CHECK: add i64
loop:
OpenPOWER on IntegriCloud