summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86RegisterInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-09 22:47:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-09 22:47:38 +0000
commitca9a93633268de020dbf1335c1bbdced930dfde7 (patch)
tree641815db8600bc4b79095f4d8d64e87a37802caa /llvm/lib/Target/X86/X86RegisterInfo.cpp
parentb296e330a322a6f82103197517c10a51855cab93 (diff)
downloadbcm5719-llvm-ca9a93633268de020dbf1335c1bbdced930dfde7.tar.gz
bcm5719-llvm-ca9a93633268de020dbf1335c1bbdced930dfde7.zip
Change the definition of TargetRegisterInfo::getCrossCopyRegClass to be more
flexible. If it returns a register class that's different from the input, then that's the register class used for cross-register class copies. If it returns a register class that's the same as the input, then no cross- register class copies are needed (normal copies would do). If it returns null, then it's not at all possible to copy registers of the specified register class. llvm-svn: 127368
Diffstat (limited to 'llvm/lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86RegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp
index fe98cacb836..1f464f4be43 100644
--- a/llvm/lib/Target/X86/X86RegisterInfo.cpp
+++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp
@@ -337,7 +337,7 @@ X86RegisterInfo::getCrossCopyRegClass(const TargetRegisterClass *RC) const {
else
return &X86::GR32RegClass;
}
- return NULL;
+ return RC;
}
unsigned
OpenPOWER on IntegriCloud