aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-06 17:01:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-06 17:01:33 +0000
commit6f8d762e6bad72b2ab9ff710cca3abb0a658fdf0 (patch)
treef36fa521dd0ada9e1887e9269e7bf108cbee4daa
parent3948d8102a1a070944d57aa6ea4c124a8d63e1f5 (diff)
Document the meaning of -1 for getCopyCost.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63933 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 54fc00dd84..3b452573fc 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/include/llvm/Target/TargetRegisterInfo.h
@@ -202,7 +202,8 @@ public:
unsigned getAlignment() const { return Alignment; }
/// getCopyCost - Return the cost of copying a value between two registers in
- /// this class.
+ /// this class. -1 means the register class is very expensive to copy e.g.
+ /// status flag register classes.
int getCopyCost() const { return CopyCost; }
};