summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-10 00:16:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-10 00:16:32 +0000
commitb0519e15f70cef7ba16b712f258d4782ade17e13 (patch)
tree54acdbd4f52b9a1d89046eaa385d955d8f52bede /include
parent02d7c9298298f7f8fba1427f249deb2106126e9c (diff)
downloadllvm-b0519e15f70cef7ba16b712f258d4782ade17e13.tar.gz
llvm-b0519e15f70cef7ba16b712f258d4782ade17e13.tar.bz2
llvm-b0519e15f70cef7ba16b712f258d4782ade17e13.tar.xz
Re-commit 127368 and 127371. They are exonerated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 1c5d7c7118..d06cdc4e8e 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/include/llvm/Target/TargetRegisterInfo.h
@@ -588,11 +588,13 @@ public:
}
/// getCrossCopyRegClass - Returns a legal register class to copy a register
- /// in the specified class to or from. Returns NULL if it is possible to copy
- /// between a two registers of the specified class.
+ /// in the specified class to or from. If it is possible to copy the register
+ /// directly without using a cross register class copy, return the specified
+ /// RC. Returns NULL if it is not possible to copy between a two registers of
+ /// the specified class.
virtual const TargetRegisterClass *
getCrossCopyRegClass(const TargetRegisterClass *RC) const {
- return NULL;
+ return RC;
}
/// getRegPressureLimit - Return the register pressure "high water mark" for