diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-11 03:27:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-11 03:27:17 +0000 |
commit | 41cdc16e7301c91d2460aa14412f592695b0d4ed (patch) | |
tree | 82cbff82eeba381415f9256cfbc02d66f8087f76 /lib/CodeGen/BranchFolding.h | |
parent | 61512ba251097888963a8f07a35605564bcfc537 (diff) |
Revert 131172 as it is causing clang to miscompile itself. I will try
to provide a reduced testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.h')
-rw-r--r-- | lib/CodeGen/BranchFolding.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/BranchFolding.h b/lib/CodeGen/BranchFolding.h index 4daf4ecfe5..15dfa7f6be 100644 --- a/lib/CodeGen/BranchFolding.h +++ b/lib/CodeGen/BranchFolding.h @@ -19,10 +19,11 @@ namespace llvm { class RegScavenger; class TargetInstrInfo; class TargetRegisterInfo; + template<typename T> class SmallVectorImpl; class BranchFolder { public: - explicit BranchFolder(bool defaultEnableTailMerge, bool CommonHoist); + explicit BranchFolder(bool defaultEnableTailMerge); bool OptimizeFunction(MachineFunction &MF, const TargetInstrInfo *tii, @@ -84,7 +85,6 @@ namespace llvm { std::vector<SameTailElt> SameTails; bool EnableTailMerge; - bool EnableHoistCommonCode; const TargetInstrInfo *TII; const TargetRegisterInfo *TRI; MachineModuleInfo *MMI; @@ -110,9 +110,6 @@ namespace llvm { bool OptimizeBlock(MachineBasicBlock *MBB); void RemoveDeadBlock(MachineBasicBlock *MBB); bool OptimizeImpDefsBlock(MachineBasicBlock *MBB); - - bool HoistCommonCode(MachineFunction &MF); - bool HoistCommonCodeInSuccs(MachineBasicBlock *MBB); }; } |