[NFC][CostModel] Fixed comment that comparisons work regardless of the state.
authorDaniil Fukalov <daniil.fukalov@amd.com>
Tue, 8 Jun 2021 16:53:28 +0000 (19:53 +0300)
committerDaniil Fukalov <daniil.fukalov@amd.com>
Fri, 11 Jun 2021 20:48:49 +0000 (23:48 +0300)
Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D104068

llvm/include/llvm/Support/InstructionCost.h

index e778ef3..030c1fb 100644 (file)
@@ -74,8 +74,8 @@ public:
   /// For all of the arithmetic operators provided here any invalid state is
   /// perpetuated and cannot be removed. Once a cost becomes invalid it stays
   /// invalid, and it also inherits any invalid state from the RHS. Regardless
-  /// of the state, arithmetic and comparisons work on the actual values in the
-  /// same way as they would on a basic type, such as integer.
+  /// of the state, arithmetic work on the actual values in the same way as they
+  /// would on a basic type, such as integer.
 
   InstructionCost &operator+=(const InstructionCost &RHS) {
     propagateState(RHS);