mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
calls are rejected above, no need to special case malloc here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
439044f4f9
commit
68b1bbbc55
@ -28,7 +28,6 @@
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/Support/CFG.h"
|
||||
#include "llvm/Analysis/ConstantFolding.h"
|
||||
#include "llvm/Analysis/MallocHelper.h"
|
||||
#include "llvm/Transforms/Utils/Local.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
@ -129,8 +128,8 @@ bool TailDup::shouldEliminateUnconditionalBranch(TerminatorInst *TI,
|
||||
// other instructions.
|
||||
if (isa<CallInst>(I) || isa<InvokeInst>(I)) return false;
|
||||
|
||||
// Allso alloca and malloc.
|
||||
if (isa<AllocationInst>(I) || isMalloc(I)) return false;
|
||||
// Also alloca and malloc.
|
||||
if (isa<AllocationInst>(I)) return false;
|
||||
|
||||
// Some vector instructions can expand into a number of instructions.
|
||||
if (isa<ShuffleVectorInst>(I) || isa<ExtractElementInst>(I) ||
|
||||
|
Loading…
Reference in New Issue
Block a user