mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Latency information for ARM v6. It's rough and not yet hooked up. Right now we are only using branch latency to determine if-conversion limits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -292,6 +292,21 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
setIfCvtBlockSizeLimit(Subtarget->isThumb() ? 0 : 10);
|
||||
setIfCvtDupBlockSizeLimit(Subtarget->isThumb() ? 0 : 2);
|
||||
|
||||
if (!Subtarget->isThumb()) {
|
||||
// Use branch latency information to determine if-conversion limits.
|
||||
const TargetInstrInfo *TII = getTargetMachine().getInstrInfo();
|
||||
const InstrItineraryData &InstrItins = Subtarget->getInstrItineraryData();
|
||||
unsigned Latency = InstrItins.getLatency(TII->get(ARM::BL).getSchedClass());
|
||||
if (Latency > 1) {
|
||||
setIfCvtBlockSizeLimit(Latency-1);
|
||||
if (Latency > 2)
|
||||
setIfCvtDupBlockSizeLimit(Latency-2);
|
||||
} else {
|
||||
setIfCvtBlockSizeLimit(10);
|
||||
setIfCvtDupBlockSizeLimit(2);
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user