This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NFC] Fix wrong debug assertion.
ClosedPublic

Authored by AndreyChurbanov on Jun 24 2021, 3:44 PM.

Details

Summary

Normalized bounds of chunk of iterations to steal from are inclusive, so upper bound should not be decremented in expression to check.
Problem was in attempt to steal iterations 0:0, that caused assertion after wrong decrement.
Reported in comment to https://reviews.llvm.org/D103648.

Diff Detail

Event Timeline

AndreyChurbanov requested review of this revision.Jun 24 2021, 3:44 PM
hbae accepted this revision.Jun 24 2021, 3:55 PM

LGTM

This revision is now accepted and ready to land.Jun 24 2021, 3:55 PM
This revision was landed with ongoing or failed builds.Jun 24 2021, 4:02 PM
This revision was automatically updated to reflect the committed changes.