mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
calls are already handled, malloc doesn't need a special case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae05e7d945
commit
4412d04876
@ -11,9 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
||||
#include "llvm/Transforms/Utils/InlineCost.h"
|
||||
#include "llvm/Analysis/MallocHelper.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/CallingConv.h"
|
||||
#include "llvm/IntrinsicInst.h"
|
||||
@ -52,7 +50,7 @@ unsigned InlineCostAnalyzer::FunctionInfo::
|
||||
// Unfortunately, we don't know the pointer that may get propagated here,
|
||||
// so we can't make this decision.
|
||||
if (Inst.mayReadFromMemory() || Inst.mayHaveSideEffects() ||
|
||||
isa<AllocationInst>(Inst) || isMalloc(&Inst))
|
||||
isa<AllocationInst>(Inst))
|
||||
continue;
|
||||
|
||||
bool AllOperandsConstant = true;
|
||||
|
Loading…
Reference in New Issue
Block a user