[DAGCombiner][X86] Guard `(X & Y) ==/!= Y` --> `(X & Y) !=/== 0` behind TLI preference
On X86 for vec types `(X & Y) == Y` is generally preferable to `(X & Y) != 0`. Creating zero requires an extra instruction and on pre-avx512 targets there is no vector `pcmpne` so it requires two additional instructions to invert the `pcmpeq`. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D157014
Loading
Please sign in to comment