summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-05-13 15:10:46 +0000
committerSanjay Patel <spatel@rotateright.com>2016-05-13 15:10:46 +0000
commitb79ab27853b8b4c9473005d5418895c1450c72c7 (patch)
tree86f519ece91654d6eee5edca944c90297d4ab59f /llvm/test/Transforms/LoopVectorize
parent8793c521bceb007921a202e670c8b4469e77a3ef (diff)
downloadbcm5719-llvm-b79ab27853b8b4c9473005d5418895c1450c72c7.tar.gz
bcm5719-llvm-b79ab27853b8b4c9473005d5418895c1450c72c7.zip
[InstCombine] canonicalize* LE/GE vector integer comparisons to LT/GT (PR26701, PR26819)
*We don't currently handle the edge case constants (min/max values), so it's not a complete canonicalization. To fully solve the motivating bugs, we need to enhance this to recognize a zero vector too because that's a ConstantAggregateZero which is a ConstantData, not a ConstantVector or a ConstantDataVector. Differential Revision: http://reviews.llvm.org/D17859 llvm-svn: 269426
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
-rw-r--r--llvm/test/Transforms/LoopVectorize/if-conversion.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/if-conversion.ll b/llvm/test/Transforms/LoopVectorize/if-conversion.ll
index fb541697652..daa8f147e21 100644
--- a/llvm/test/Transforms/LoopVectorize/if-conversion.ll
+++ b/llvm/test/Transforms/LoopVectorize/if-conversion.ll
@@ -73,7 +73,7 @@ for.end:
;CHECK-LABEL: @reduction_func(
;CHECK: load <4 x i32>
;CHECK: add <4 x i32>
-;CHECK: icmp sle <4 x i32>
+;CHECK: icmp slt <4 x i32>
;CHECK: select <4 x i1>
;CHECK: ret i32
define i32 @reduction_func(i32* nocapture %A, i32 %n) nounwind uwtable readonly ssp {
OpenPOWER on IntegriCloud