[PATCH] D36711: [X86] Combining CMOVs with [ANY, SIGN, ZERO]_EXTEND for cases where CMOV has constant arguments
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 08:25:32 PDT 2017
spatel added a comment.
In https://reviews.llvm.org/D36711#842026, @spatel wrote:
> It's worth noting that we could convert any select of constants to math ops. I was planning a follow-up to https://reviews.llvm.org/rL310717 that would do that, but there might be cases where we would prefer to select cmov? If not, that would make this patch obsolete.
GCC has already implemented this:
https://godbolt.org/g/i5DVLe
https://reviews.llvm.org/D36711
More information about the llvm-commits
mailing list