[PATCH] D43327: [X86] Promote 16-bit cmovs to 32-bits
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 18:55:19 PST 2018
craig.topper updated this revision to Diff 134781.
craig.topper added a comment.
Just create the cmovs as i32 when they are created. Add a DAG combine for sign_extend_reg to avoid regressing the tests in cmov_promotion.ll
My previous approach was trying to follow closer to how and/or/xor/etc. are promoted, but I don't know that we need to follow that. This patch gets rid of the 16-bit cmovs and doesn't regress any of our tests. That's probably a good enough starting point.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10239 bytes
Desc: not available
More information about the llvm-commits