1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/test/Transforms/SLPVectorizer/AArch64
Matthew Simpson b74ea1ef12 [SLP] Avoid signed integer overflow
The test case included with r279125 exposed an existing signed integer
overflow. Since getTreeCost can return INT_MAX, we can't sum this cost together
with other costs, such as getReductionCost.

This patch removes the possibility of assigning a cost of INT_MAX. Since we
were previously using INT_MAX as an indicator for "should not vectorize", we
now explicitly check this condition with "isTreeTinyAndNotFullyVectorizable"
before computing a cost.

This patch adds a run-line to the test case used for r279125 that ensures we
don't vectorize. Previously, this line would vectorize the test case by chance
due to undefined behavior in the cost calculation.

Differential Revision: https://reviews.llvm.org/D23723

llvm-svn: 279562
2016-08-23 20:48:50 +00:00
..
commute.ll [CostModel][AArch64] Increase cost of vector insert element and add missing cast costs 2015-08-17 16:05:09 +00:00
gather-reduce.ll [TTI] Add hook for vector extract with extension 2016-04-27 15:20:21 +00:00
gather-root.ll [SLP] Avoid signed integer overflow 2016-08-23 20:48:50 +00:00
getelementptr.ll Reapply r257800 with fix 2016-01-15 18:51:51 +00:00
horizontal.ll [NFC] Update horizontal reduction test cases. 2015-12-16 17:22:24 +00:00
lit.local.cfg
load-store-q.ll
minimum-sizes.ll Reapply commit r259357 with a fix for PR26629 2016-02-18 14:14:40 +00:00
mismatched-intrinsics.ll
nontemporal.ll [SLP] Add one more test case for propagating 'nontemporal' attributes. 2015-08-21 00:08:39 +00:00
sdiv-pow2.ll