From 56dca4e3cae307cb7154c83f43282cad54be88a8 Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Fri, 4 Aug 2017 20:19:46 +0000 Subject: [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 --- llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/test/Transforms/LoopStrengthReduce/sext-ind-var.ll') 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 -- cgit v1.2.3