[llvm-commits] [llvm] r115364 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/IfConversion.cpp lib/Target/ARM/ARMBaseInstrInfo.cpp lib/Target/ARM/ARMBaseInstrInfo.h lib/Target/ARM/Thumb2InstrInfo.cpp lib/Target/ARM/Thumb2InstrInfo.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Oct 1 17:11:50 PDT 2010


On Oct 1, 2010, at 3:45 PM, Owen Anderson wrote:

> @@ -305,10 +305,11 @@
> 
>   /// isProfitableToIfCvt - Return true if it's profitable to first "NumInstrs"
>   /// of the specified basic block, where the probability of the instructions
> -  /// being executed is given by Probability.
> +  /// being executed is given by Probability, and Confidence is a measure
> +  /// of our confidence that it will be properly predicted.
>   virtual
>   bool isProfitableToIfCvt(MachineBasicBlock &MBB, unsigned NumInstrs,
> -                           float Probability) const {
> +                           float Probability, float Confidence) const {
>     return false;
>   }
> 

What are the units of Confidence? Does it map to a known concept from probability theory?

Could these be discrete numbers to avoid codegen differences on different hosts?

/jakob





More information about the llvm-commits mailing list