forked from OSchip/llvm-project
[Alignment][NFC] Deprecate VectorUtils::getAlignment
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: hiraditya, rogfer01, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76542
This commit is contained in:
parent
3ba550a05a
commit
32851f8d63
|
@ -530,7 +530,10 @@ public:
|
|||
|
||||
bool isReverse() const { return Reverse; }
|
||||
uint32_t getFactor() const { return Factor; }
|
||||
uint32_t getAlignment() const { return Alignment.value(); }
|
||||
LLVM_ATTRIBUTE_DEPRECATED(uint32_t getAlignment() const,
|
||||
"Use getAlign instead.") {
|
||||
return Alignment.value();
|
||||
}
|
||||
Align getAlign() const { return Alignment; }
|
||||
uint32_t getNumMembers() const { return Members.size(); }
|
||||
|
||||
|
|
|
@ -5919,7 +5919,7 @@ unsigned LoopVectorizationCostModel::getInterleaveGroupCost(Instruction *I,
|
|||
Group->requiresScalarEpilogue() && !isScalarEpilogueAllowed();
|
||||
unsigned Cost = TTI.getInterleavedMemoryOpCost(
|
||||
I->getOpcode(), WideVecTy, Group->getFactor(), Indices,
|
||||
Group->getAlignment(), AS, Legal->isMaskRequired(I), UseMaskForGaps);
|
||||
Group->getAlign().value(), AS, Legal->isMaskRequired(I), UseMaskForGaps);
|
||||
|
||||
if (Group->isReverse()) {
|
||||
// TODO: Add support for reversed masked interleaved access.
|
||||
|
|
|
@ -844,7 +844,7 @@ void VPInterleavedAccessInfo::visitBlock(VPBlockBase *Block, Old2NewTy &Old2New,
|
|||
auto NewIGIter = Old2New.find(IG);
|
||||
if (NewIGIter == Old2New.end())
|
||||
Old2New[IG] = new InterleaveGroup<VPInstruction>(
|
||||
IG->getFactor(), IG->isReverse(), Align(IG->getAlignment()));
|
||||
IG->getFactor(), IG->isReverse(), IG->getAlign());
|
||||
|
||||
if (Inst == IG->getInsertPos())
|
||||
Old2New[IG]->setInsertPos(VPInst);
|
||||
|
|
Loading…
Reference in New Issue