Add a subtarget hook for reporting the misprediction penalty. Use this to provide...
authorOwen Anderson <resistor@mac.com>
Tue, 28 Sep 2010 21:57:50 +0000 (21:57 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 28 Sep 2010 21:57:50 +0000 (21:57 +0000)
commit654d5440a477b1f6c89b051107e041a331f78e27
treeda901f24645ed369ad7c056b4e0ce3ab47e8787e
parentfd60980eb248f44927ea55c1f8d11fa019d318a6
Add a subtarget hook for reporting the misprediction penalty. Use this to provide more precise
cost modeling for if-conversion.  Now if only we had a way to estimate the misprediction probability.

Adjsut CodeGen/ARM/ifcvt10.ll.  The pipeline on Cortex-A8 is long enough that it is still profitable
to predicate an ldm, but the shorter pipeline on Cortex-A9 makes it unprofitable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
test/CodeGen/ARM/ifcvt10.ll