Although bool and int1 are the same sometimes, using bool constant matches the
semantic better. In any cases, we don't have to care the type of conditions if
we remove the intial value. The type is determined automatically by the returned
type of logical operations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp | ||
---|---|---|
190 | Maybe avoid having a "initial value" altogether? Just check if conds.size() == 0 to check if a condition already exists in the stack. |
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp | ||
---|---|---|
190 | +1, then the idiomatic MLIR way is to use conds.empty() |
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp | ||
---|---|---|
190 | Good point, and we can just rely on the return type of logical operations. |
Maybe avoid having a "initial value" altogether? Just check if conds.size() == 0 to check if a condition already exists in the stack.