Add comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-06-19 07:06:07 +00:00
parent 7e2242be71
commit b1019480b6

View File

@ -294,6 +294,10 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
if (!Subtarget->isThumb()) {
// Use branch latency information to determine if-conversion limits.
// FIXME: If-converter should use instruction latency of the branch being
// eliminated to compute the threshold. For ARMv6, the branch "latency"
// varies depending on whether it's dynamically or statically predicted
// and on whether the destination is in the prefetch buffer.
const TargetInstrInfo *TII = getTargetMachine().getInstrInfo();
const InstrItineraryData &InstrItins = Subtarget->getInstrItineraryData();
unsigned Latency= InstrItins.getLatency(TII->get(ARM::Bcc).getSchedClass());