mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Add FreeInst to the "is a call" check for Insts that are calls, but
not intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd31b173d2
commit
00d67db384
@ -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