diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 17:43:50 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 17:43:50 +0000 |
| commit | 064eff7d5699a0dbdeeece5a36a601f673662f55 (patch) | |
| tree | 9b55d84fea5b3777135ce41c11bc676ac50e6a43 /lib/CodeGen/PHIElimination.h | |
| parent | a932bae406dcddd6e4e39f8253ca721559a9dffb (diff) | |
| download | external_llvm-064eff7d5699a0dbdeeece5a36a601f673662f55.zip external_llvm-064eff7d5699a0dbdeeece5a36a601f673662f55.tar.gz external_llvm-064eff7d5699a0dbdeeece5a36a601f673662f55.tar.bz2 | |
Move the decision logic whether it's a good idea to split a critical edge to clients. Also fixed an erroneous check. An edge is only a back edge when the from and to blocks are in the same loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PHIElimination.h')
| -rw-r--r-- | lib/CodeGen/PHIElimination.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/PHIElimination.h b/lib/CodeGen/PHIElimination.h index f183de6..b054732 100644 --- a/lib/CodeGen/PHIElimination.h +++ b/lib/CodeGen/PHIElimination.h @@ -13,15 +13,18 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallPtrSet.h" +#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineFunctionPass.h" -#include "llvm/CodeGen/MachineRegisterInfo.h" namespace llvm { class LiveVariables; + class MachineRegisterInfo; + class MachineLoopInfo; /// Lower PHI instructions to copies. class PHIElimination : public MachineFunctionPass { - MachineRegisterInfo *MRI; // Machine register information + MachineRegisterInfo *MRI; // Machine register information + MachineLoopInfo *MLI; public: static char ID; // Pass identification, replacement for typeid |
