This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

gysit created this revision.Mar 2 2020, 5:44 AM
ftynse accepted this revision.Mar 2 2020, 5:56 AM
This revision is now accepted and ready to land.Mar 2 2020, 5:56 AM
herhut accepted this revision.Mar 2 2020, 6:23 AM

Thank you!

This revision was automatically updated to reflect the committed changes.