aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-16 20:15:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-16 20:15:00 +0000
commit5f15992b77f178f633e414603a732279997ae1e2 (patch)
treed9f14e78d32e96dffee47ed9229ae6b381e8dc66 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent914e50c841bbc248ab94144c11813b5785b1292d (diff)
Changed my mind. We now allow remat of instructions whose defs have subreg indices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 873e58e5c7..d8f2089f31 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1157,11 +1157,6 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
if (DisableReMat)
return false;
- // FIXME: For now, avoid remating instructions whose definition has a subreg
- // index. It's just incredibly difficult to get right.
- if (MI->findRegisterDefOperand(li.reg)->getSubReg())
- return false;
-
if (MI->getOpcode() == TargetInstrInfo::IMPLICIT_DEF)
return true;