llvm-project/llvm/test/Transforms/SLPVectorizer/AArch64
Matthew Simpson df2ab917ad [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
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
sdiv-pow2.ll