Skip to content

[Transform] Hoist thread-local allocator within the nested parallel loops #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Sep 23, 2024

Conversation

ciyongch
Copy link
Contributor

This PR is to track #120

This is another implementation of hoisting thread-local allocator base on the new memref-merge design, so it depends on #44

@ciyongch ciyongch requested a review from ZhennanQin September 12, 2024 09:41
isa<arith::ConstantIndexOp>(ub.getDefiningOp()));
});

isStatic &= llvm::all_of(lowerBounds, [](Value &lb) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we also check the step? I am also not sure if &= will short-cut the evaluation of llvm::all_of(...) if isStatic is false.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I can add the check for the step, and use early return when the expression return false.

@ciyongch ciyongch merged commit cad8a29 into main Sep 23, 2024
6 checks passed
@ciyongch ciyongch linked an issue Sep 24, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hoist thread-local allocator within the nested parallel loops
5 participants