mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Add getUnrollingPreferences to TTI
Allow targets to customize the default behavior of the generic loop unrolling transformation. This will be used by the PowerPC backend when targeting the A2 core (which is in-order with a deep pipeline), and using more aggressive defaults is important. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -84,6 +84,7 @@ public:
|
||||
virtual unsigned getJumpBufSize() const;
|
||||
virtual bool shouldBuildLookupTables() const;
|
||||
virtual bool haveFastSqrt(Type *Ty) const;
|
||||
virtual bool getUnrollingPreferences(UnrollingPreferences &UP) const;
|
||||
|
||||
/// @}
|
||||
|
||||
@ -189,6 +190,10 @@ bool BasicTTI::haveFastSqrt(Type *Ty) const {
|
||||
return TLI->isTypeLegal(VT) && TLI->isOperationLegalOrCustom(ISD::FSQRT, VT);
|
||||
}
|
||||
|
||||
bool BasicTTI::getUnrollingPreferences(UnrollingPreferences &) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Calls used by the vectorizers.
|
||||
|
Reference in New Issue
Block a user