Added brackets to fix the loop trip count computation. The brackets ensure the bounds are subtracted before we divide the result by the step of the loop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D75449
[MLIR][GPU] fix loop trip count computation in LoopsToGPU ClosedPublic Authored by gysit on Mar 2 2020, 5:44 AM.
Details Summary Added brackets to fix the loop trip count computation. The brackets ensure the bounds are subtracted before we divide the result by the step of the loop.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 2 2020, 5:56 AM Closed by commit rGd17428d95135: [MLIR][GPU] fix loop trip count computation in LoopsToGPU (authored by herhut). · Explain WhyMar 2 2020, 6:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 247630 mlir/lib/Conversion/LoopsToGPU/LoopsToGPU.cpp
mlir/test/Conversion/LoopsToGPU/parallel_loop.mlir
|