summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorAmara Emerson <amara.emerson@arm.com>2017-05-19 10:40:18 +0000
committerAmara Emerson <amara.emerson@arm.com>2017-05-19 10:40:18 +0000
commit4d33c86359a0aab3faafa65184c141eca1e163a5 (patch)
tree77e9e3cb3948b2bf8632f13c72184be9f5053948 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parenta1c30937ce2a5c0ad052013234d869a3decd47a6 (diff)
downloadbcm5719-llvm-4d33c86359a0aab3faafa65184c141eca1e163a5.tar.gz
bcm5719-llvm-4d33c86359a0aab3faafa65184c141eca1e163a5.zip
Fix vector pass-through value being unused in IRBuilder::CreateMaskedGather
Also s/0/nullptr in the call site in LV. llvm-svn: 303416
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 516ab7d03a8..1dc554bede7 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -3047,7 +3047,7 @@ void InnerLoopVectorizer::vectorizeMemoryInstruction(Instruction *Instr) {
if (CreateGatherScatter) {
Value *MaskPart = Legal->isMaskRequired(LI) ? Mask[Part] : nullptr;
NewLI = Builder.CreateMaskedGather(VectorGep[Part], Alignment, MaskPart,
- 0, "wide.masked.gather");
+ nullptr, "wide.masked.gather");
Entry[Part] = NewLI;
} else {
// Calculate the pointer for the specific unroll-part.
OpenPOWER on IntegriCloud