forked from OSchip/llvm-project
calls are rejected above, no need to special case malloc here.
llvm-svn: 82929
This commit is contained in:
parent
43d0db70ac
commit
466d57f6c1
|
@ -28,7 +28,6 @@
|
||||||
#include "llvm/Type.h"
|
#include "llvm/Type.h"
|
||||||
#include "llvm/Support/CFG.h"
|
#include "llvm/Support/CFG.h"
|
||||||
#include "llvm/Analysis/ConstantFolding.h"
|
#include "llvm/Analysis/ConstantFolding.h"
|
||||||
#include "llvm/Analysis/MallocHelper.h"
|
|
||||||
#include "llvm/Transforms/Utils/Local.h"
|
#include "llvm/Transforms/Utils/Local.h"
|
||||||
#include "llvm/Support/CommandLine.h"
|
#include "llvm/Support/CommandLine.h"
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
|
@ -129,8 +128,8 @@ bool TailDup::shouldEliminateUnconditionalBranch(TerminatorInst *TI,
|
||||||
// other instructions.
|
// other instructions.
|
||||||
if (isa<CallInst>(I) || isa<InvokeInst>(I)) return false;
|
if (isa<CallInst>(I) || isa<InvokeInst>(I)) return false;
|
||||||
|
|
||||||
// Allso alloca and malloc.
|
// Also alloca and malloc.
|
||||||
if (isa<AllocationInst>(I) || isMalloc(I)) return false;
|
if (isa<AllocationInst>(I)) return false;
|
||||||
|
|
||||||
// Some vector instructions can expand into a number of instructions.
|
// Some vector instructions can expand into a number of instructions.
|
||||||
if (isa<ShuffleVectorInst>(I) || isa<ExtractElementInst>(I) ||
|
if (isa<ShuffleVectorInst>(I) || isa<ExtractElementInst>(I) ||
|
||||||
|
|
Loading…
Reference in New Issue