[PATCH] D77828: [BasicAA][SVE] Fix aliasGEP for scalable type.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 14:11:02 PDT 2020


huihuiz created this revision.
huihuiz added reviewers: sdesmalen, efriedma, spatel, bjope.
huihuiz added a project: LLVM.
Herald added subscribers: psnobl, rkruppe, hiraditya, tschuett.
huihuiz added a parent revision: D76944: [GVN] Fix VNCoercion/BasicAA for Scalable Vector..

Don't attempt to decompose GEP for scalable type. GEP index scale
is unknown at compile-time for scalable type. Be conservative, return
MayAlias.

Explicitly call TypeSize::getFixedSize() to assert on places where
scalable type doesn't make sense.

This patch is needed for D76944 <https://reviews.llvm.org/D76944>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77828

Files:
  llvm/lib/Analysis/BasicAliasAnalysis.cpp
  llvm/test/Analysis/BasicAA/vscale.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77828.256400.patch
Type: text/x-patch
Size: 8839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200409/4a37a10d/attachment.bin>


More information about the llvm-commits mailing list