[PATCH] D104432: [Attributor] Introduce AAPointerInfo
Kuter Dinel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 13 11:01:21 PDT 2021
kuter added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/AttributorAttributes.cpp:835-838
+ return (OAS.getOffset() >= getOffset() &&
+ OAS.getOffset() < getOffset() + getSize()) ||
+ (getOffset() >= OAS.getOffset() &&
+ getOffset() < OAS.getOffset() + OAS.getSize());
----------------
I think range intersection can be simpler here
https://stackoverflow.com/questions/3269434/whats-the-most-efficient-way-to-test-two-integer-ranges-for-overlap
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104432/new/
https://reviews.llvm.org/D104432
More information about the llvm-commits
mailing list