diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 54fc00dd84c..3b452573fc0 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; } };