An SCF 'for' loop does not iterate if its lower bound is equal to its upper
bound. Remove loops where both bounds are the same SSA value as such bounds are
guaranteed to be equal. Similarly, remove 'parallel' loops where at least one
pair of respective lower/upper bounds is specified by the same SSA value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/SCF/canonicalize.mlir | ||
---|---|---|
34–35 | I would probably remove this test? It originally tested that the "CollapseSingleIterationLoops" pattern does not accidentally remove no/zero iteration loops. I think your new pattern/test now covers this scenario. |
I would probably remove this test? It originally tested that the "CollapseSingleIterationLoops" pattern does not accidentally remove no/zero iteration loops. I think your new pattern/test now covers this scenario.