[PATCH] D123029: [AArch64] Optimize patterns where AND's on same operand with multiple masks can be combined.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 02:59:22 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6942
+  // Check if it is three level
+  return matchThreeLevelOrAnd(DAG, N, N0, N1, VT);
+}
----------------
This all feels likes it should be performed a lot more generally in a lot less code tbh - you're adding a lot of code just to hit a couple of patterns.


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

https://reviews.llvm.org/D123029



More information about the llvm-commits mailing list