This is an archive of the discontinued LLVM Phabricator instance.

Refactor __kmp_execute_tasks_template function
ClosedPublic

Authored by tlwilmar on Jun 1 2016, 2:31 PM.

Details

Summary

Refactored __kmp_execute_tasks_template to shorten and remove code redundancy.

The original code for __kmp_execute_tasks_template was very redundant with large sections of repeated code that needed to be kept consistent, and goto statements that made the control flow difficult to discern. This refactoring removes all gotos and redundancy.

The diff is pretty much non-sensical because the structure has changed so much and LOC reduced a lot. Best to just read and understand the new code.

Diff Detail

Repository
rL LLVM

Event Timeline

tlwilmar updated this revision to Diff 59278.Jun 1 2016, 2:31 PM
tlwilmar retitled this revision from to Refactor __kmp_execute_tasks_template function.
tlwilmar updated this object.
tlwilmar added reviewers: AndreyChurbanov, jlpeyton.
tlwilmar set the repository for this revision to rL LLVM.
tlwilmar added a subscriber: openmp-commits.
AndreyChurbanov accepted this revision.Jun 7 2016, 2:20 AM
AndreyChurbanov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jun 7 2016, 2:20 AM
This revision was automatically updated to reflect the committed changes.