[PATCH] D95826: [SROA] Propagate correct TBAA/TBAA Struct offsets
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 21:05:59 PST 2021
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/SROA.cpp:3388
+ APInt Offset(
+ DL.getIndexSizeInBits(GEPToCompute->getPointerAddressSpace()), 0);
+ if (AATags && GEPToCompute->accumulateConstantOffset(DL, Offset))
----------------
wsmoses wrote:
> jdoerfert wrote:
> > No temporary GEPs please. What is wrong with GEP ?
> The problem is that the GEP instruction itself may be constant folded by the IRBuilder (and thus why it only returns a value and not a gep instruction).
Hm, do we need this for anything other than struct types?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95826/new/
https://reviews.llvm.org/D95826
More information about the llvm-commits
mailing list