1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Transforms/SLPVectorizer
Florian Hahn 70a02a1b3f [SLPVectorizer] Do not assume extracelement idx is a ConstantInt.
The index of an ExtractElementInst is not guaranteed to be a
ConstantInt. It can be any integer value. Check explicitly for
ConstantInts.

The new test cases illustrate scenarios where we crash without
this patch. I've also added another test case to check the matching
of extractelement vector ops works.

Reviewers: RKSimon, ABataev, dtemirbulatov, vporpo

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D74758
2020-02-18 18:16:06 +01:00
..
AArch64 [SLP] Look-ahead operand reordering heuristic. 2019-11-11 21:06:51 -08:00
AMDGPU TTI: Fix vectorization cost for bswap 2020-02-14 10:14:07 -08:00
ARM
NVPTX Migrate function attribute "no-frame-pointer-elim" to "frame-pointer"="all" as cleanups after D56351 2019-12-24 15:57:33 -08:00
PowerPC
SystemZ
X86 [SLPVectorizer] Do not assume extracelement idx is a ConstantInt. 2020-02-18 18:16:06 +01:00
XCore
int_sideeffect.ll