aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 4997302fa6..2558b09ad6 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.