[PATCH] D59412: [X86] X86ISelLowering::combineSextInRegCmov(): also handle i8 CMOV's
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 06:44:42 PDT 2019
lebedev.ri created this revision.
lebedev.ri added reviewers: craig.topper, andreadb.
lebedev.ri added a project: LLVM.
As noted by @andreadb in https://reviews.llvm.org/D59035#inline-525780
If we have `sext ([trunc] (cmov C0, C1))`, we can instead do `cmov (sext ([trunc] (C0))), (sext ([trunc] (C1)))`
Repository:
rL LLVM
https://reviews.llvm.org/D59412
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/cmov-promotion.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59412.190817.patch
Type: text/x-patch
Size: 3559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190315/0a97a873/attachment.bin>
More information about the llvm-commits
mailing list