This gets rid of a dubious shape_eq %a, %a fold, that folds shape_eq
even if %a is not an Attribute.
Details
Details
- Reviewers
tpopp jpienaar silvas - Commits
- rG24acadef8acb: [mlir][Shape] Make shape_eq nary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, I'll leave more to Tres who knows these better
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td | ||
---|---|---|
186 | Could you add a comment? (Initially I was confused, but then I realized this was just a convenience builder for binary case to probably retain current call behavior). | |
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp | ||
494 | Set to nullptr explicitly? (makes check in 522 simpler to see) | |
509 | So this results in a linear sequence of compares all with firstShape as lhs? | |
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
638 | Nit: I prefer logical operator |
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp | ||
---|---|---|
511 | Are these tabs? |
Could you add a comment? (Initially I was confused, but then I realized this was just a convenience builder for binary case to probably retain current call behavior).