[PATCH] D113212: [DAGCombiner] add fold for vselect of signbit

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 03:47:40 PDT 2021


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:9566
+    return DAG.getNode(ISD::AND, DL, VT, Sra, N1);
+  }
+
----------------
Would it be useful to have the inverse of this if the target hasAndNot() ?


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

https://reviews.llvm.org/D113212



More information about the llvm-commits mailing list