[PATCH] D76249: [AliasAnalysis] Misc fixes for checking aliasing with scalable types.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 17 15:08:09 PDT 2020
sdesmalen added inline comments.
================
Comment at: llvm/lib/IR/Value.cpp:717
// CanBeNull flag.
- DerefBytes = DL.getTypeStoreSize(GV->getValueType());
+ DerefBytes = DL.getTypeStoreSize(GV->getValueType()).getKnownMinSize();
CanBeNull = false;
----------------
>From the LangRef:
> Scalable vectors cannot be global variables or members of structs or arrays because their size is unknown at compile time.
So I think this can use getFixedSize().
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76249/new/
https://reviews.llvm.org/D76249
More information about the llvm-commits
mailing list