aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-05-25 21:26:32 +0000
committerMatthias Braun <matze@braunis.de>2017-05-25 21:26:32 +0000
commit1527baab0ca1e449340d09a33a32cd01053f3241 (patch)
tree03842ea734eb7882b9512ae00a6894aecbf2c7e2 /llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
parent2897e0306efe62703bad8e1234334fefccf2ae37 (diff)
downloadllvm-1527baab0ca1e449340d09a33a32cd01053f3241.zip
llvm-1527baab0ca1e449340d09a33a32cd01053f3241.tar.gz
llvm-1527baab0ca1e449340d09a33a32cd01053f3241.tar.bz2
CodeGen: Rename DEBUG_TYPE to match passnames
Rename the DEBUG_TYPE to match the names of corresponding passes where it makes sense. Also establish the pattern of simply referencing DEBUG_TYPE instead of repeating the passname where possible. llvm-svn: 303921
Diffstat (limited to 'llvm/lib/CodeGen/DeadMachineInstructionElim.cpp')
-rw-r--r--llvm/lib/CodeGen/DeadMachineInstructionElim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
index 7ac2e54..265dda1 100644
--- a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
@@ -23,7 +23,7 @@
using namespace llvm;
-#define DEBUG_TYPE "codegen-dce"
+#define DEBUG_TYPE "dead-mi-elimination"
STATISTIC(NumDeletes, "Number of dead instructions deleted");
@@ -54,7 +54,7 @@ namespace {
char DeadMachineInstructionElim::ID = 0;
char &llvm::DeadMachineInstructionElimID = DeadMachineInstructionElim::ID;
-INITIALIZE_PASS(DeadMachineInstructionElim, "dead-mi-elimination",
+INITIALIZE_PASS(DeadMachineInstructionElim, DEBUG_TYPE,
"Remove dead machine instructions", false, false)
bool DeadMachineInstructionElim::isDead(const MachineInstr *MI) const {