[PATCH] D114480: [LAA] Support looking through pointer selects (WIP).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 23 14:57:12 PST 2021


fhahn created this revision.
Herald added subscribers: javed.absar, hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch extends visitPointes to look through GEPs. If the base
pointer is a select, construct 2 pointer SCEVs, one with each incoming
value and call AddPointer on both.

This effectively allows us to generate runtime checks for pointers
involving selects, by creating 2 MemAccessInfos for such pointers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114480

Files:
  llvm/lib/Analysis/LoopAccessAnalysis.cpp
  llvm/test/Analysis/LoopAccessAnalysis/memcheck-wrapping-pointers.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114480.389327.patch
Type: text/x-patch
Size: 10279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211123/8f5d0add/attachment.bin>


More information about the llvm-commits mailing list