[PATCH] D113426: [DAGCombiner] add fold for vselect based on mask of signbit, part 3

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 10 13:51:03 PST 2021


lebedev.ri accepted this revision.
lebedev.ri added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:9591
+  }
   return SDValue();
 }
----------------
Notice the symmetry, there's final 4'th pattern there: 
`(Cond0 s> -1) ? -1 : N1 --> ~(Cond0 s>> BW-1) | N1`
https://alive2.llvm.org/ce/z/ZefLue


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

https://reviews.llvm.org/D113426



More information about the llvm-commits mailing list