[PATCH] D137433: [DAG] Add canonicalization to avoid redundant nots in concat vectors

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 05:56:39 PST 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:21649
+    SDValue N1 = N->getOperand(1);
+    if (N0->getOpcode() == ISD::TRUNCATE && N1->getOpcode() == ISD::TRUNCATE) {
+      auto isBitwiseVectorNegate = [](SDValue V) {
----------------
hasOneUse (or N->isOnlyUserOf()) checks?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137433



More information about the llvm-commits mailing list