[PATCH] D86433: [ARM][CGP] Fix scalar condition selects for MVE
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 01:29:37 PDT 2020
dmgreen created this revision.
dmgreen added reviewers: efriedma, SjoerdMeijer, samparker, ostannard.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
dmgreen requested review of this revision.
The arm backend does not handle select/select_cc on vectors with scalar conditions, preferring to expand them in codegenprepare instead. This usually works except when optimizing for size, where the optsize check would end up overruling the backend isSelectSupported check.
We could handle the selects in ISel too, but this seems like smaller code than trying to splat the condition to all lanes.
https://reviews.llvm.org/D86433
Files:
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/CodeGen/Thumb2/mve-selectcc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86433.287308.patch
Type: text/x-patch
Size: 7429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200824/aa6b9752/attachment.bin>
More information about the llvm-commits
mailing list