[PATCH] D147260: [Loads] Support SCEVAddExpr as start for pointer AddRec.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 12:33:46 PDT 2023


fhahn created this revision.
fhahn added reviewers: anna, reames, gilr, rengolin.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: LLVM.

Extend handling to support `%base + offset` as start for AddRecs in
isDereferenceableAndAlignedInLoop. This is done by adjusting AccessSize
by the offset and effectively checking if the full object starting from
%base to %base + offset + access-size is dereferenceable.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147260

Files:
  llvm/lib/Analysis/Loads.cpp
  llvm/test/Transforms/LoopVectorize/X86/load-deref-pred.ll
  llvm/test/Transforms/LoopVectorize/load-of-struct-deref-pred.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147260.509784.patch
Type: text/x-patch
Size: 40548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230330/e362bbac/attachment.bin>


More information about the llvm-commits mailing list