From d195ce1fb6539469bf1e82c41d5a8c2efdb5f61b Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 8 Nov 2007 22:20:23 +0000 Subject: [PATCH] Make BreakCriticalMachineEdges available as a pass that can be depended on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43910 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/Passes.h | 4 ++++ lib/CodeGen/BreakCriticalMachineEdges.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index 5e93525ab47..89e8ba9b37a 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -58,6 +58,10 @@ namespace llvm { /// extern const PassInfo *SimpleRegisterCoalescingID; + /// BreakCriticalMachineEdges pass. Breaks critical edges between + /// machine basic blocks. + extern const PassInfo *BreakCriticalMachineEdgesID; + /// TwoAddressInstruction pass - This pass reduces two-address instructions to /// use two operands. This destroys SSA information but it is desired by /// register allocators. diff --git a/lib/CodeGen/BreakCriticalMachineEdges.cpp b/lib/CodeGen/BreakCriticalMachineEdges.cpp index e381abc4561..ece1786eb5d 100644 --- a/lib/CodeGen/BreakCriticalMachineEdges.cpp +++ b/lib/CodeGen/BreakCriticalMachineEdges.cpp @@ -41,7 +41,7 @@ namespace { "Break critical machine code edges"); } -//const PassInfo *llvm::BreakCriticalMachineEdgesID = X.getPassInfo(); +const PassInfo *llvm::BreakCriticalMachineEdgesID = X.getPassInfo(); void BreakCriticalMachineEdges::splitCriticalEdge(MachineBasicBlock* src, MachineBasicBlock* dst) { -- 2.34.1