diff options
author | Sam Clegg <sbc@chromium.org> | 2018-10-09 18:41:17 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-10-09 18:41:17 +0000 |
commit | 81abca32fba4d8eb537c4ac4445e0175309b9fc8 (patch) | |
tree | 741e6bbd64aa9c82fdf95fceed216ed280218d51 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | a9ea9c5034ddca7ccd5285b34a3d1c2772b12862 (diff) | |
download | llvm-81abca32fba4d8eb537c4ac4445e0175309b9fc8.zip llvm-81abca32fba4d8eb537c4ac4445e0175309b9fc8.tar.gz llvm-81abca32fba4d8eb537c4ac4445e0175309b9fc8.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions