This is an archive of the discontinued LLVM Phabricator instance.

Fix bitmask complement operation
ClosedPublic

Authored by tlwilmar on Jun 10 2016, 2:57 PM.

Details

Summary

The bitmask complement operation doesn't consider the max proc id which means
something like !{0} will be translated to {1,2,3,4,...,600,601,...,1023} on a
Linux system even though there aren't 600 processors on said system. This
change has the complement bitmask and-ed with the fullmask so that it will only
contain valid processors.

Patch by Johnny Peyton

Diff Detail

Repository
rL LLVM

Event Timeline

tlwilmar updated this revision to Diff 60410.Jun 10 2016, 2:57 PM
tlwilmar retitled this revision from to Fix bitmask complement operation.
tlwilmar updated this object.
tlwilmar added reviewers: AndreyChurbanov, hbae.
tlwilmar set the repository for this revision to rL LLVM.
tlwilmar added a subscriber: openmp-commits.
hbae accepted this revision.Jun 13 2016, 9:52 AM
hbae edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jun 13 2016, 9:52 AM
This revision was automatically updated to reflect the committed changes.