[PATCH] D26583: [X86][SSE] Improve SINT_TO_FP of boolean vector results (signum)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 12 16:29:18 PST 2016
RKSimon created this revision.
RKSimon added reviewers: zvi, craig.topper, spatel, andreadb.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.
This patch helps avoids poor legalization of boolean vector results (e.g. 8f32 -> 8i1 -> 8i16) that feed into SINT_TO_FP by inserting an early SIGN_EXTEND and so help improve the truncation logic.
This is not necessary for AVX512 targets where boolean vectors are legal.
Fix for PR13248
Repository:
rL LLVM
https://reviews.llvm.org/D26583
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-cvt.ll
test/CodeGen/X86/sse-fsignum.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26583.77731.patch
Type: text/x-patch
Size: 9114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161113/9de59828/attachment.bin>
More information about the llvm-commits
mailing list