This revision folds arith.shrui, arith.shrsi and arith.shli with zero
rhs to lhs.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/Arith/canonicalize.mlir | ||
---|---|---|
2112 | Nit: don't pattern-match SSA value names, they are transient. Capture the name at its definition point instead with %[[NAME:.+]] |
mlir/test/Dialect/Arith/canonicalize.mlir | ||
---|---|---|
2112 | +1 capturing the arguments is simple as well, e.g. CHECK-LABEL: func.func @foldShli0( |
Nit: don't pattern-match SSA value names, they are transient. Capture the name at its definition point instead with %[[NAME:.+]]