mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
It's now possible to run code placement pass for ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f5d84e4ad
commit
f6799394d5
@ -67,6 +67,11 @@ ARMInterworking("arm-interworking", cl::Hidden,
|
|||||||
cl::desc("Enable / disable ARM interworking (for debugging only)"),
|
cl::desc("Enable / disable ARM interworking (for debugging only)"),
|
||||||
cl::init(true));
|
cl::init(true));
|
||||||
|
|
||||||
|
static cl::opt<bool>
|
||||||
|
EnableARMCodePlacement("arm-code-placement", cl::Hidden,
|
||||||
|
cl::desc("Enable code placement pass for ARM."),
|
||||||
|
cl::init(false));
|
||||||
|
|
||||||
static bool CC_ARM_APCS_Custom_f64(unsigned &ValNo, EVT &ValVT, EVT &LocVT,
|
static bool CC_ARM_APCS_Custom_f64(unsigned &ValNo, EVT &ValVT, EVT &LocVT,
|
||||||
CCValAssign::LocInfo &LocInfo,
|
CCValAssign::LocInfo &LocInfo,
|
||||||
ISD::ArgFlagsTy &ArgFlags,
|
ISD::ArgFlagsTy &ArgFlags,
|
||||||
@ -532,10 +537,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
|||||||
setSchedulingPreference(Sched::Hybrid);
|
setSchedulingPreference(Sched::Hybrid);
|
||||||
|
|
||||||
maxStoresPerMemcpy = 1; //// temporary - rewrite interface to use type
|
maxStoresPerMemcpy = 1; //// temporary - rewrite interface to use type
|
||||||
// Do not enable CodePlacementOpt for now: it currently runs after the
|
|
||||||
// ARMConstantIslandPass and messes up branch relaxation and placement
|
if (EnableARMCodePlacement)
|
||||||
// of constant islands.
|
benefitFromCodePlacementOpt = true;
|
||||||
// benefitFromCodePlacementOpt = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *ARMTargetLowering::getTargetNodeName(unsigned Opcode) const {
|
const char *ARMTargetLowering::getTargetNodeName(unsigned Opcode) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user