Skip to content
Snippets Groups Projects

Fix xcvmem heuristic

Merged Imported Eclipse Webmaster requested to merge github/fork/PhilippvK/fix-xcvmem-heuristic into development
2 files
+ 11
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -1008,8 +1008,13 @@ unsigned RISCVTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const {
return SLPMaxVF;
}
bool RISCVTTIImpl::shouldFavorPostInc() const {
return ST->hasExtXcvmem();
TTI::AddressingModeKind
RISCVTTIImpl::getPreferredAddressingMode(const Loop *L,
ScalarEvolution *SE) const {
if (ST->hasExtXcvmem())
return TTI::AMK_PostIndexed;
return TTI::AMK_None;
}
bool RISCVTTIImpl::isHardwareLoopProfitable(Loop *L, ScalarEvolution &SE,
Loading