Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for attempting the clean up. I think the original version is probably more readable. I left comments there. wdyt?
llvm/lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
2131 | I guess you want to exclude debug or probe instrinsics, but I'm still not sure if we should exclude all intrinsics. llvm.memcpy is also an intrinsic, but is probably still a good anchor? | |
2152 | It took me a while to understand the intention of this code... basically check on CalleeDIL is for checking whether it's inlined case or not... probably not very readable.. |
Sounds good, abandoning this, will work on the original patch.
llvm/lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
2131 | It should be ok to exclude all the IntrinsicInst because this is consistent with the sample loader/inliner, I did a search, it looks in inliner we all have the if (isa<IntrinsicInst>(CB)) continue; right after the auto *CB = dyn_cast<CallBase>(&I);. |
I guess you want to exclude debug or probe instrinsics, but I'm still not sure if we should exclude all intrinsics. llvm.memcpy is also an intrinsic, but is probably still a good anchor?