[PATCH] D25485: [x86] use 'neg' for negation of bool

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 17:04:28 PDT 2016


efriedma added a comment.

DAGCombine can eliminate the mask instruction in a lot of cases (if the value is in fact zero-extended).  Also, the mask+neg is probably slightly more efficient than two shifts on most processors.


https://reviews.llvm.org/D25485





More information about the llvm-commits mailing list