[PATCH] D73671: [MLIR][Standard] Add canonicalization for indexCast(indexCast(x))

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 09:37:34 PST 2020


rriddle added inline comments.


================
Comment at: mlir/lib/Dialect/StandardOps/Ops.cpp:1592
+  auto cast = dyn_cast_or_null<IndexCastOp>(getOperand().getDefiningOp());
+  if (cast && cast.getOperand().getType() == getType()) {
+    return cast.getOperand();
----------------
nit: Remove trivial braces and the extra newline at the end of this function.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73671





More information about the llvm-commits mailing list