Skip to content

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
@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

6 participants