[PATCH] D146512: [TLI] SimplifySetCC - Fold ~X >/< ~Y --> Y >/< X

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 22 04:55:05 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:4990
+
+      if (const auto *C = dyn_cast<ConstantSDNode>(N1)) {
+        SDValue Not = DAG.getNOT(dl, N1, OpVT);
----------------
Can you replace this with llvm::isConstantIntBuildVectorOrConstantInt(N1) to support vectors as well?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146512



More information about the llvm-commits mailing list