[PATCH] D28354: [X86][MCU] replace select with bit manipulation instead of branches
Asaf Badouh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 24 02:00:06 PST 2017
AsafBadouh updated this revision to Diff 85543.
AsafBadouh edited the summary of this revision.
AsafBadouh added a comment.
Great catch Igor,
the transformation is not valid to select (and (x & 0x1) == 0) , (z ^ y), y ),
for that we will need an extra instruction to create the mask.
I change the algorithm to catch only: select (and (x & 0x1) == 0) , y, (z ^ y) )
Repository:
rL LLVM
https://reviews.llvm.org/D28354
Files:
../tunkClang/lib/Target/X86/X86ISelLowering.cpp
../tunkClang/test/CodeGen/X86/select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28354.85543.patch
Type: text/x-patch
Size: 4780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170124/56c5ec5b/attachment.bin>
More information about the llvm-commits
mailing list