[PATCH] D124750: [MLIR] Add a utility to sort the operands of commutative ops

Jeff Niu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 00:13:20 PDT 2022


Mogball added inline comments.


================
Comment at: mlir/lib/Transforms/Utils/CommutativityUtils.cpp:523
+      shiftTheSmallestUnsortedOperandsToTheSmallestUnsortedPositions(
+          bfsOfOperands, smallestUnsortedPosition);
+
----------------
And then you'll never need to check `isSorted` again.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124750



More information about the cfe-commits mailing list