[PATCH] D112370: [BasicAA] Use index size instead of pointer size

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 23 14:38:34 PDT 2021


nikic created this revision.
nikic added reviewers: arichardson, fhahn, jdoerfert, reames.
Herald added subscribers: jeroen.dobbelaere, dexonsmith, arphaman, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When accumulating the GEP offset in BasicAA, we should use the pointer index size rather than the pointer size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112370

Files:
  llvm/include/llvm/IR/DataLayout.h
  llvm/lib/Analysis/BasicAliasAnalysis.cpp
  llvm/lib/IR/DataLayout.cpp
  llvm/test/Analysis/BasicAA/index-size.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112370.381759.patch
Type: text/x-patch
Size: 7336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211023/f251a565/attachment.bin>


More information about the llvm-commits mailing list