mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Change MCSchedModel to be a struct of statically initialized data.
This removes static initializers from the backends which generate this data, and also makes this struct match the other Tablegen generated structs in behaviour Reviewed by Andy Trick and Chandler C git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -229,8 +229,8 @@ void BasicTTI::getUnrollingPreferences(Loop *L,
|
||||
const TargetSubtargetInfo *ST = &TM->getSubtarget<TargetSubtargetInfo>();
|
||||
if (PartialUnrollingThreshold.getNumOccurrences() > 0)
|
||||
MaxOps = PartialUnrollingThreshold;
|
||||
else if (ST->getSchedModel()->LoopMicroOpBufferSize > 0)
|
||||
MaxOps = ST->getSchedModel()->LoopMicroOpBufferSize;
|
||||
else if (ST->getSchedModel().LoopMicroOpBufferSize > 0)
|
||||
MaxOps = ST->getSchedModel().LoopMicroOpBufferSize;
|
||||
else
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user