From: Daniil Fukalov Date: Tue, 8 Jun 2021 16:53:28 +0000 (+0300) Subject: [NFC][CostModel] Fixed comment that comparisons work regardless of the state. X-Git-Tag: llvmorg-14-init~4171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79ffbc9c9f5fac6296d6d4b12167b77d7b013371;p=platform%2Fupstream%2Fllvm.git [NFC][CostModel] Fixed comment that comparisons work regardless of the state. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D104068 --- diff --git a/llvm/include/llvm/Support/InstructionCost.h b/llvm/include/llvm/Support/InstructionCost.h index e778ef3..030c1fb 100644 --- a/llvm/include/llvm/Support/InstructionCost.h +++ b/llvm/include/llvm/Support/InstructionCost.h @@ -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);