We already has a parallel loop specialization pass that is used to
enable unrolling and consecutive vectorization by rewriting loops
whose bound is defined as a min of a constant and a dynamic value
into a loop with static bound (the constant) and the minimum as
bound, wrapped into a conditional to dispatch between the two.
This adds the same rewriting for for loops.
Details
Details
- Reviewers
ftynse bkramer - Commits
- rG4bcd08eb1c3b: [mlir] Add for loop specialization
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Nit: can we take the first 'for' into single quotes for improved readability?