[PATCH] D94713: Do not traverse ConstantData use-list in SLPVectorizer
Anton Rapetov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 16:21:40 PST 2021
willir added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:989
Value *V = Values[Idx].first;
+ if (isa<ConstantData>(V)) {
+ // Walking the use list of a Constant (particularly, ConstantData)
----------------
nikic wrote:
> Why does this check for ConstantData in particular?
Hi, thanks for the review.
Instances of `ConstantData` are unique for the entire an `LLVMContext`, so its uses can be spread across multiple functions and modules.
This commit is a part of a bigger project to remove use-list from `ConstantData`.
Here are some links for more info about it:
https://bugs.llvm.org/show_bug.cgi?id=30513
https://lists.llvm.org/pipermail/llvm-dev/2016-September/105157.html
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94713/new/
https://reviews.llvm.org/D94713
More information about the llvm-commits
mailing list