summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize/AArch64
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2019-06-06 08:56:26 +0000
committerSam Parker <sam.parker@arm.com>2019-06-06 08:56:26 +0000
commit7cc580f5e95e7e5dd84db2c276f58709258cd120 (patch)
tree767ec67006d21df6b87a8d653494c020711cae17 /llvm/test/Transforms/LoopVectorize/AArch64
parent54eeb3f40ab1f68619083cfce3e0dff2521b7cef (diff)
downloadbcm5719-llvm-7cc580f5e95e7e5dd84db2c276f58709258cd120.tar.gz
bcm5719-llvm-7cc580f5e95e7e5dd84db2c276f58709258cd120.zip
[SCEV] Use wrap flags in InsertBinop
If the given SCEVExpr has no (un)signed flags attached to it, transfer these to the resulting instruction or use them to find an existing instruction. Differential Revision: https://reviews.llvm.org/D61934 llvm-svn: 362687
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/AArch64')
-rw-r--r--llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll b/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
index c51c6c98ddf..9841a9d6019 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
@@ -29,7 +29,7 @@ define void @_Z1dv() local_unnamed_addr #0 {
; CHECK-NEXT: [[MIN_ITERS_CHECK:%.*]] = icmp ult i64 [[TMP1]], 4
; CHECK-NEXT: br i1 [[MIN_ITERS_CHECK]], label [[SCALAR_PH:%.*]], label [[VECTOR_SCEVCHECK:%.*]]
; CHECK: vector.scevcheck:
-; CHECK-NEXT: [[TMP2:%.*]] = sub i64 3, [[TMP0]]
+; CHECK-NEXT: [[TMP2:%.*]] = sub nsw i64 3, [[TMP0]]
; CHECK-NEXT: [[TMP3:%.*]] = add i32 [[G_0]], [[CONV]]
; CHECK-NEXT: [[TMP4:%.*]] = trunc i64 [[TMP2]] to i32
; CHECK-NEXT: [[MUL:%.*]] = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 1, i32 [[TMP4]])
OpenPOWER on IntegriCloud