mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Should be using Bcc (average) latency to determine if-conversion threshold, not BL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2fb070bf5a
commit
7a42b08be8
@ -296,7 +296,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
// 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());
|
||||
unsigned Latency= InstrItins.getLatency(TII->get(ARM::Bcc).getSchedClass());
|
||||
if (Latency > 1) {
|
||||
setIfCvtBlockSizeLimit(Latency-1);
|
||||
if (Latency > 2)
|
||||
|
Loading…
Reference in New Issue
Block a user