summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-27 07:14:50 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-27 07:14:50 +0000
commitf71372297537df945c537a0a719f8a6af21d8f14 (patch)
treeb22636a95baeb92be27e2efb9c871fd3095b1529 /llvm/lib/CodeGen
parent59b5691388c0ed931463ca0d19fa85925174103f (diff)
downloadbcm5719-llvm-f71372297537df945c537a0a719f8a6af21d8f14.tar.gz
bcm5719-llvm-f71372297537df945c537a0a719f8a6af21d8f14.zip
For now, don't split live intervals around x87 stack register barriers. FpGET_ST0_80 must be right after a call instruction (and ADJCALLSTACKUP) so we need to find a way to prevent reload of x87 registers between them.
llvm-svn: 58230
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PreAllocSplitting.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp
index 547c528ca23..33e3e8054ce 100644
--- a/llvm/lib/CodeGen/PreAllocSplitting.cpp
+++ b/llvm/lib/CodeGen/PreAllocSplitting.cpp
@@ -659,6 +659,8 @@ PreAllocSplitting::SplitRegLiveIntervals(const TargetRegisterClass **RCs) {
// by the current barrier.
SmallVector<LiveInterval*, 8> Intervals;
for (const TargetRegisterClass **RC = RCs; *RC; ++RC) {
+ if (TII->IgnoreRegisterClassBarriers(*RC))
+ continue;
std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC);
for (unsigned i = 0, e = VRs.size(); i != e; ++i) {
unsigned Reg = VRs[i];
OpenPOWER on IntegriCloud