summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll
diff options
context:
space:
mode:
authorAmara Emerson <amara.emerson@arm.com>2017-08-04 20:19:46 +0000
committerAmara Emerson <amara.emerson@arm.com>2017-08-04 20:19:46 +0000
commit56dca4e3cae307cb7154c83f43282cad54be88a8 (patch)
treed192d4e67866c03627b7eedf82b0691a8875cad1 /llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll
parentfcf8e5e34572c16848378232f1b414a4686a4916 (diff)
downloadbcm5719-llvm-56dca4e3cae307cb7154c83f43282cad54be88a8.tar.gz
bcm5719-llvm-56dca4e3cae307cb7154c83f43282cad54be88a8.zip
[SCEV] Preserve NSW information for sext(subtract).
Pushes the sext onto the operands of a Sub if NSW is present. Also adds support for propagating the nowrap flags of the llvm.ssub.with.overflow intrinsic during analysis. Differential Revision: https://reviews.llvm.org/D35256 llvm-svn: 310117
Diffstat (limited to 'llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll')
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll b/llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll
index 3cf8f536fa7..21e72b29831 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll
+++ b/llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll
@@ -47,8 +47,7 @@ exit:
;
define float @testsub(float* %input, i32 %offset, i32 %numIterations) {
; CHECK-LABEL: @testsub
-; CHECK: sub i32 0, %offset
-; CHECK: sext i32
+; CHECK: sext i32 %offset to i64
; CHECK: loop:
; CHECK-DAG: phi float*
; CHECK-DAG: phi i32
OpenPOWER on IntegriCloud