diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2014-09-17 14:10:33 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2014-09-17 14:10:33 +0000 |
commit | bb99f40530be9eee3f461c62436b2b5f723e515b (patch) | |
tree | 08f41bb3f2055ddfbc3dbca1a89d110ee3bdfec1 /llvm/test/Transforms/IndVarSimplify/no-iv-rewrite.ll | |
parent | ebdf90ca009b6ae97980ee6b43acba3b1638546e (diff) | |
download | bcm5719-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.ll | 3 |
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: |