mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Address review comments.
llvm-svn: 275706
This commit is contained in:
parent
ed2fb41710
commit
0bf19e5f7f
@ -275,6 +275,14 @@ ICallPromotionFunc::getPromotionCandidatesForCallSite(
|
||||
DEBUG(dbgs() << " Candidate " << I << " Count=" << Count
|
||||
<< " Target_func: " << Target << "\n");
|
||||
|
||||
if (ICPInvokeOnly && dyn_cast<CallInst>(Inst)) {
|
||||
DEBUG(dbgs() << " Not promote: User options.\n");
|
||||
break;
|
||||
}
|
||||
if (ICPCallOnly && dyn_cast<InvokeInst>(Inst)) {
|
||||
DEBUG(dbgs() << " Not promote: User option.\n");
|
||||
break;
|
||||
}
|
||||
if (ICPCutOff != 0 && NumOfPGOICallPromotion >= ICPCutOff) {
|
||||
DEBUG(dbgs() << " Not promote: Cutoff reached.\n");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user