-
Notifications
You must be signed in to change notification settings - Fork 788
[NFC][SYCL] Minor stylistic changes in SYCLPropagateAspectsUsage.cpp #7049
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
04af6c6
to
cdd1946
Compare
I also think that https://github.com/intel/llvm/pull/7049/files#diff-68d289383a30446b6ac4a16059d3b19708674ac2562fa5ddb8af87fb5158e9cdL273-L275 should be re-written using depth_first (or similar) iterators to avoid manual |
Do I understand correctly that a suggestion here is to switch to some existing call graph handling data structure (perhaps |
const Constant *C = CAM->getValue(); | ||
Aspects.insert(cast<ConstantInt>(C)->getSExtValue()); | ||
} | ||
for (const MDOperand &Op : drop_begin(N->operands())) |
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.
Good to know that such helpers exist, thanks!
I didn't have a deep look (and I still need to address CI failures for this version before starting any other refactoring), but I'd expect the answer is "not quite". I think we'd have the same data structure but the code traversing it would be different. Instead of the
|
Also add a comment why that was so.
The same ESIMD EMU failures: Failed Tests (2): are seen on another PR hence unrelated to this one. |
Co-authored-by: Alexey Sachkov <[email protected]>
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.
LGTM. Nice change to showcase good coding practices. Thanks
No description provided.