mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 09:18:30 +00:00
Set the default PPC node scheduling preference to ILP (for the embedded cores).
The 440 and A2 cores have detailed itineraries, and this allows them to be fully used to maximize throughput. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
800125f3a3
commit
3f31d492a5
@ -5837,3 +5837,12 @@ EVT PPCTargetLowering::getOptimalMemOpType(uint64_t Size,
|
||||
return MVT::i32;
|
||||
}
|
||||
}
|
||||
|
||||
Sched::Preference PPCTargetLowering::getSchedulingPreference(SDNode *N) const {
|
||||
unsigned Directive = PPCSubTarget.getDarwinDirective();
|
||||
if (Directive == PPC::DIR_440 || Directive == PPC::DIR_A2)
|
||||
return Sched::ILP;
|
||||
|
||||
return TargetLowering::getSchedulingPreference(N);
|
||||
}
|
||||
|
||||
|
@ -281,6 +281,7 @@ namespace llvm {
|
||||
bool SelectAddressRegImmShift(SDValue N, SDValue &Disp, SDValue &Base,
|
||||
SelectionDAG &DAG) const;
|
||||
|
||||
Sched::Preference getSchedulingPreference(SDNode *N) const;
|
||||
|
||||
/// LowerOperation - Provide custom lowering hooks for some operations.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user