-
Notifications
You must be signed in to change notification settings - Fork 17
[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
Conversation
…ijie/mem-merge
…ijie/mem-merge
…ijie/mem-merge
…ijie/mem-merge
…ijie/mem-merge
isa<arith::ConstantIndexOp>(ub.getDefiningOp())); | ||
}); | ||
|
||
isStatic &= llvm::all_of(lowerBounds, [](Value &lb) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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