aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-23 23:00:04 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-23 23:00:04 +0000
commit9c48ca7a32b9df51b6e752fd228f946612637011 (patch)
tree78840d306ed504ef256a64b57f655433065848ed /lib/CodeGen
parentd13951e5e62b1bf7b50c1035386d0e5af616a881 (diff)
downloadexternal_llvm-9c48ca7a32b9df51b6e752fd228f946612637011.zip
external_llvm-9c48ca7a32b9df51b6e752fd228f946612637011.tar.gz
external_llvm-9c48ca7a32b9df51b6e752fd228f946612637011.tar.bz2
Revert 51440 as it breaks a bunch of PIC tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4997302..2558b09 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1150,9 +1150,7 @@ rewriteInstructionsForSpills(const LiveInterval &li, bool TrySplit,
}
MachineBasicBlock *MBB = MI->getParent();
- // ReMatDefMI is a clone and not in the IR at all, so check
- // RefMatOrigDefMI too.
- if (ImpUse && MI != ReMatDefMI && MI != ReMatOrigDefMI) {
+ if (ImpUse && MI != ReMatDefMI) {
// Re-matting an instruction with virtual register use. Update the
// register interval's spill weight to HUGE_VALF to prevent it from
// being spilled.