[llvm-commits] [llvm] r63933 - /llvm/trunk/include/llvm/Target/TargetRegisterInfo.h
Evan Cheng
evan.cheng at apple.com
Fri Feb 6 09:01:35 PST 2009
Author: evancheng
Date: Fri Feb 6 11:01:33 2009
New Revision: 63933
URL: http://llvm.org/viewvc/llvm-project?rev=63933&view=rev
Log:
Document the meaning of -1 for getCopyCost.
Modified:
llvm/trunk/include/llvm/Target/TargetRegisterInfo.h
Modified: llvm/trunk/include/llvm/Target/TargetRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetRegisterInfo.h?rev=63933&r1=63932&r2=63933&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetRegisterInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetRegisterInfo.h Fri Feb 6 11:01:33 2009
@@ -202,7 +202,8 @@
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; }
};
More information about the llvm-commits
mailing list