mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Add FreeInst to the "is a call" check for Insts that are calls, but
not intrinsics. llvm-svn: 83441
This commit is contained in:
parent
564b5f75ac
commit
e6bebc66a7
@ -135,8 +135,8 @@ void InlineCostAnalyzer::FunctionInfo::analyzeFunction(Function *F) {
|
||||
NumInsts += 5;
|
||||
}
|
||||
|
||||
// This, too, is a call.
|
||||
if (isa<MallocInst>(II))
|
||||
// These, too, are calls.
|
||||
if (isa<MallocInst>(II) || isa<FreeInst>(II))
|
||||
NumInsts += 5;
|
||||
|
||||
if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
|
||||
|
Loading…
Reference in New Issue
Block a user