From 5a7723c7a2d5b7d67125f008d7d41b3e4d145f99 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 8 Apr 2016 15:17:43 +0000 Subject: Revert r265547 "Recommit r265309 after fixed an invalid memory reference bug happened" It caused PR27275: "ARM: Bad machine code: Using an undefined physical register" Also reverting the following commits that were landed on top: r265610 "Fix the compare-clang diff error introduced by r265547." r265639 "Fix the sanitizer bootstrap error in r265547." r265657 "InlineSpiller.cpp: Escap \@ in r265547. [-Wdocumentation]" llvm-svn: 265790 --- llvm/lib/CodeGen/SplitKit.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'llvm/lib/CodeGen/SplitKit.h') diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h index 6bff9e882a4..69c65ff3f61 100644 --- a/llvm/lib/CodeGen/SplitKit.h +++ b/llvm/lib/CodeGen/SplitKit.h @@ -18,7 +18,6 @@ #include "LiveRangeCalc.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" -#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/IntervalMap.h" #include "llvm/ADT/SmallPtrSet.h" @@ -330,14 +329,9 @@ private: MachineBasicBlock *findShallowDominator(MachineBasicBlock *MBB, MachineBasicBlock *DefMBB); - /// Find out all the backCopies dominated by others. - void computeRedundantBackCopies(DenseSet &NotToHoistSet, - SmallVectorImpl &BackCopies); - - /// Hoist back-copies to the complement interval. It tries to hoist all - /// the back-copies to one BB if it is beneficial, or else simply remove - /// redundent backcopies dominated by others. - void hoistCopies(); + /// hoistCopiesForSize - Hoist back-copies to the complement interval in a + /// way that minimizes code size. This implements the SM_Size spill mode. + void hoistCopiesForSize(); /// transferValues - Transfer values to the new ranges. /// Return true if any ranges were skipped. -- cgit v1.2.3