diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-06-27 04:06:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-06-27 04:06:41 +0000 |
| commit | be5f2c6841611251b1a8d2145645e6ca6cd2d15e (patch) | |
| tree | e6fb15bd54b6808abc890a6b009baa30887761f5 /lib/CodeGen | |
| parent | 19bb7c77c841d60c1f0c2f52af90ea4c25f4a5f1 (diff) | |
| download | external_llvm-be5f2c6841611251b1a8d2145645e6ca6cd2d15e.zip external_llvm-be5f2c6841611251b1a8d2145645e6ca6cd2d15e.tar.gz external_llvm-be5f2c6841611251b1a8d2145645e6ca6cd2d15e.tar.bz2 | |
When doing remat, don't consider uses of non-allocatable physregs. Patch
by Evan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index d6931df..21bb5dc 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -947,6 +947,10 @@ unsigned LiveIntervals::getReMatImplicitUse(const LiveInterval &li, unsigned Reg = MO.getReg(); if (Reg == 0 || Reg == li.reg) continue; + + if (TargetRegisterInfo::isPhysicalRegister(Reg) && + !allocatableRegs_[Reg]) + continue; // FIXME: For now, only remat MI with at most one register operand. assert(!RegOp && "Can't rematerialize instruction with multiple register operand!"); |
