summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-06 15:31:55 +0000
committerDan Gohman <gohman@apple.com>2010-07-06 15:31:55 +0000
commit2b2a1c3c8614421dd9f750564d020b552dc0e0e2 (patch)
tree79d23192eda355a2155b0c5e93ff301e3acb1f61 /llvm/lib
parent6c858db40cfe6bcb0d79eeadd467db44dc6b71d0 (diff)
downloadbcm5719-llvm-2b2a1c3c8614421dd9f750564d020b552dc0e0e2.tar.gz
bcm5719-llvm-2b2a1c3c8614421dd9f750564d020b552dc0e0e2.zip
Make getMinimalPhysRegClass' comment mention what makes it different
from getPhysicalRegisterRegClass. llvm-svn: 107660
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetRegisterInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetRegisterInfo.cpp b/llvm/lib/Target/TargetRegisterInfo.cpp
index 48374d93d88..65898243d0a 100644
--- a/llvm/lib/Target/TargetRegisterInfo.cpp
+++ b/llvm/lib/Target/TargetRegisterInfo.cpp
@@ -61,7 +61,8 @@ TargetRegisterInfo::getPhysicalRegisterRegClass(unsigned reg, EVT VT) const {
}
/// getMinimalPhysRegClass - Returns the Register Class of a physical
-/// register of the given type.
+/// register of the given type, picking the most sub register class of
+/// the right type that contains this physreg.
const TargetRegisterClass *
TargetRegisterInfo::getMinimalPhysRegClass(unsigned reg, EVT VT) const {
assert(isPhysicalRegister(reg) && "reg must be a physical register");
OpenPOWER on IntegriCloud