Add a new MachineInstr-level DCE pass. It is very simple, and is intended to

be used with fast-isel.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-09-17 00:43:24 +00:00
parent 7795932d41
commit d3ead4329e
3 changed files with 106 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ namespace {
if (std::getenv("bar") != (char*) -1)
return;
(void) llvm::createDeadMachineInstructionElimPass();
(void) llvm::createSimpleRegisterAllocator();
(void) llvm::createLocalRegisterAllocator();
(void) llvm::createBigBlockRegisterAllocator();

View File

@@ -75,6 +75,11 @@ namespace llvm {
/// machine basic blocks.
extern const PassInfo *const UnreachableMachineBlockElimID;
/// DeadMachineInstructionElim pass - This pass removes dead machine
/// instructions.
///
FunctionPass *createDeadMachineInstructionElimPass();
/// Creates a register allocator as the user specified on the command line.
///
FunctionPass *createRegisterAllocator();