[LoopVectorize] Up the maximum unroll factor to 4 for AArch64

Only for Cortex-A57 and Cyclone for now, where it has shown wins.

llvm-svn: 216141
This commit is contained in:
James Molloy 2014-08-21 00:02:51 +00:00
parent 82c995d450
commit a88896b5c0
1 changed files with 7 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public:
return 64;
}
unsigned getMaximumUnrollFactor() const override { return 2; }
unsigned getMaximumUnrollFactor() const override;
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src) const
override;
@ -513,3 +513,9 @@ unsigned AArch64TTI::getCostOfKeepingLiveOverCall(ArrayRef<Type*> Tys) const {
}
return Cost;
}
unsigned AArch64TTI::getMaximumUnrollFactor() const {
if (ST->isCortexA57() || ST->isCyclone())
return 4;
return 2;
}