[PATCH] D93793: [IR] Let IRBuilder's CreateVectorSplat/CreateShuffleVector use poison as placeholder
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 29 11:22:00 PST 2020
aqjune marked an inline comment as done.
aqjune added inline comments.
================
Comment at: llvm/lib/IR/IRBuilder.cpp:1020
Value *Zeros = ConstantAggregateZero::get(VectorType::get(I32Ty, EC));
- return CreateShuffleVector(V, Undef, Zeros, Name + ".splat");
+ return CreateShuffleVector(V, Poison, Zeros, Name + ".splat");
}
----------------
spatel wrote:
> I'm still catching up on reviews/mails, so ignore if this was already discussed:
> Can we change this usage of CreateShuffleVector to the unary operand version, so we're reducing the number of explicit places where we need to specify poison?
Yes, it makes sense.
I'll update D93817 to use the unary version as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93793/new/
https://reviews.llvm.org/D93793
More information about the llvm-commits
mailing list