For equal operands, comparisons can be decided statically.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
944 | Use BoolAttr here instead. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
944 | BoolAttr(val, getContext()) ? |
Comment Actions
Thanks!
mlir/test/Dialect/Standard/canonicalize.mlir | ||
---|---|---|
65 | Curious: When do we use CHECK-DAG? I initially thought it is nice to use it when order doesn't matter (like here) and was later told that CHECK is preferable because it is easier to debug. |
Comment Actions
Thanks for the reviews!
mlir/test/Dialect/Standard/canonicalize.mlir | ||
---|---|---|
65 | I have used it here as these two constants are newly added and I did not want to hardwire their order in this test. |
BoolAttr(val, getContext()) ?