//
//===----------------------------------------------------------------------===//
-
#include "llvm/Transforms/Utils/InlineCost.h"
-#include "llvm/Analysis/MallocHelper.h"
#include "llvm/Support/CallSite.h"
#include "llvm/CallingConv.h"
#include "llvm/IntrinsicInst.h"
// 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;