mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make isSlowPath() a public member of ColdBlockInfo.
Swift SVN r24108
This commit is contained in:
@@ -84,7 +84,7 @@ static BranchHint getBranchHint(SILValue Cond) {
|
||||
|
||||
/// \return true if the CFG edge FromBB->ToBB is directly gated by a _slowPath
|
||||
/// branch hint.
|
||||
static bool isSlowPath(const SILBasicBlock *FromBB, const SILBasicBlock *ToBB) {
|
||||
bool ColdBlockInfo::isSlowPath(const SILBasicBlock *FromBB, const SILBasicBlock *ToBB) {
|
||||
auto *CBI = dyn_cast<CondBranchInst>(FromBB->getTerminator());
|
||||
if (!CBI)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user