llvm-project/llvm/test/Transforms/SLPVectorizer
Sam Clegg 81abca32fb [SLPVectorizer] Check that lowered type is floating point before calling isFabsFree
In the case of soft-fp (e.g. fp128 under wasm) the result of
getTypeLegalizationCost() can be an integer type even if the input is
floating point (See LegalizeTypeAction::TypeSoftenFloat).

Before calling isFabsFree() (which asserts if given a non-fp
type) we need to check that that result is fp.  This is safe since in
fabs is certainly not free in the soft-fp case.

Fixes PR39168

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

llvm-svn: 344069
2018-10-09 18:41:17 +00:00
..
AArch64 [SLP] Fix insert point for reused extract instructions. 2018-08-07 19:21:05 +00:00
AMDGPU Fix vectorization of canonicalize 2018-09-17 13:24:30 +00:00
ARM [SLPVectorizer] add test for PR13837; NFC 2018-01-23 22:04:17 +00:00
NVPTX [NVPTX] Turn on Loop/SLP vectorization 2018-04-27 13:36:05 +00:00
PowerPC [SLP] Update tests checks, NFC. 2018-01-05 14:40:04 +00:00
SystemZ [SLPVectorizer] Add tests related to PR30787, NFCI. 2018-03-29 18:57:03 +00:00
X86 [SLPVectorizer] Check that lowered type is floating point before calling isFabsFree 2018-10-09 18:41:17 +00:00
XCore
int_sideeffect.ll Add an @llvm.sideeffect intrinsic 2017-11-08 21:59:51 +00:00