summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-06-22 02:50:31 +0000
committerAndrew Trick <atrick@apple.com>2012-06-22 02:50:31 +0000
commit3ccb1b8cf9077c99e19b4582d8619d7616ad2fd0 (patch)
tree45211bd3ed90ba25f383ad3898bd41a21d81813c /llvm/lib
parent0d6989bd10cb66724fefa6c96aa70e4b82ff8740 (diff)
downloadbcm5719-llvm-3ccb1b8cf9077c99e19b4582d8619d7616ad2fd0.tar.gz
bcm5719-llvm-3ccb1b8cf9077c99e19b4582d8619d7616ad2fd0.zip
ARM scheduling fix: compute predicated implicit use properly.
Minor drive by fix to cleanup latency computation. Calling getOperandLatency with a deliberately incorrect operand index does not give you the latency you want. llvm-svn: 158959
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 6bed1371feb..cceb05e4615 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -2998,9 +2998,7 @@ ARMBaseInstrInfo::getOutputLatency(const InstrItineraryData *ItinData,
return 1;
// If the second MI is predicated, then there is an implicit use dependency.
- int Latency = getOperandLatency(ItinData, DefMI, DefIdx, DepMI,
- DepMI->getNumOperands());
- return (Latency <= 0) ? 1 : Latency;
+ return getInstrLatency(ItinData, DefMI);
}
unsigned ARMBaseInstrInfo::getInstrLatency(const InstrItineraryData *ItinData,
OpenPOWER on IntegriCloud