[PATCH] D42479: DAGCombiner: Combine SDIV with non-splat vector pow2 divisor

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 7 09:22:59 PDT 2018


RKSimon added a comment.

In https://reviews.llvm.org/D42479#1059005, @zvi wrote:

> - N1C can be passed to matchUnaryPredicate also when the divisor is a constant-splat. Makes check more efficient as we avoid re-checking the splatted element for every vector element. (why doesn't matchUnaryPredicate check for splat and do the same?)


Because that would mean that we couldn't use the predicate to control when we accept undefs or not.


Repository:
  rL LLVM

https://reviews.llvm.org/D42479





More information about the llvm-commits mailing list