In the function EarlyIfPredicator::shouldConvertIf(), we call TII->isProfitableToIfCvt() with BranchProbability::getUnknown(), it may cause the potential assertion error for those hook which use BranchProbability in isProfitableToIfCvt(), for example SystemZ.
SystemZ use Probability < BranchProbability(1, 8)) in the function SystemZInstrInfo::isProfitableToIfCvt(), if we call this function with BranchProbability::getUnknown(), it will cause assertion error.
In fact, it's hard to find a assertion test case, I have try it.
Now the pass EarlyIfPredicator haven't been enable, but this potential bug still need to be fixed.