diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-06 17:01:33 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-06 17:01:33 +0000 |
commit | 1731125787f8e782d789bbd1c4d883d31c676e3f (patch) | |
tree | db6eb3a906d9818a328637e1438230ce4e9fec4a | |
parent | 87cab1e75105386390e9195797182ec28fb067d9 (diff) | |
download | bcm5719-llvm-1731125787f8e782d789bbd1c4d883d31c676e3f.tar.gz bcm5719-llvm-1731125787f8e782d789bbd1c4d883d31c676e3f.zip |
Document the meaning of -1 for getCopyCost.
llvm-svn: 63933
-rw-r--r-- | llvm/include/llvm/Target/TargetRegisterInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetRegisterInfo.h b/llvm/include/llvm/Target/TargetRegisterInfo.h index 54fc00dd84c..3b452573fc0 100644 --- a/llvm/include/llvm/Target/TargetRegisterInfo.h +++ b/llvm/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; } }; |