Only for Cortex-A57 and Cyclone for now, where it has shown wins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216141
91177308-0d34-0410-b5e6-
96231b3b80d8
return 64;
}
- unsigned getMaximumUnrollFactor() const override { return 2; }
+ unsigned getMaximumUnrollFactor() const override;
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src) const
override;
}
return Cost;
}
+
+unsigned AArch64TTI::getMaximumUnrollFactor() const {
+ if (ST->isCortexA57() || ST->isCyclone())
+ return 4;
+ return 2;
+}