[PATCH] D82602: [SelectionDAG] don't split branch on logic-of-vector-compares

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 16:23:50 PDT 2020


efriedma added a comment.

Would it make sense to treat this as an SLP issue?  i.e. we should transform `and(extractelement(x,0), extractelement(x,1))` to `vector.reduce.and(x)`?  If we're not extracting two elements from the same vector, the transform doesn't look as good.

On AArch64, we probably want to use addp for the result of a `<2 x double>` compare, given the limited set of available operations on 64-bit integers, sure.  But I doubt it's really that relevant in practice.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82602/new/

https://reviews.llvm.org/D82602





More information about the llvm-commits mailing list