[llvm] 79ffbc9 - [NFC][CostModel] Fixed comment that comparisons work regardless of the state.

Daniil Fukalov via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 11 13:49:03 PDT 2021


Author: Daniil Fukalov
Date: 2021-06-11T23:48:49+03:00
New Revision: 79ffbc9c9f5fac6296d6d4b12167b77d7b013371

URL: https://github.com/llvm/llvm-project/commit/79ffbc9c9f5fac6296d6d4b12167b77d7b013371
DIFF: https://github.com/llvm/llvm-project/commit/79ffbc9c9f5fac6296d6d4b12167b77d7b013371.diff

LOG: [NFC][CostModel] Fixed comment that comparisons work regardless of the state.

Reviewed By: sdesmalen

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

Added: 
    

Modified: 
    llvm/include/llvm/Support/InstructionCost.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/InstructionCost.h b/llvm/include/llvm/Support/InstructionCost.h
index e778ef3b68257..030c1fb8e4a1e 100644
--- a/llvm/include/llvm/Support/InstructionCost.h
+++ b/llvm/include/llvm/Support/InstructionCost.h
@@ -74,8 +74,8 @@ class InstructionCost {
   /// 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);


        


More information about the llvm-commits mailing list