[PATCH] D104068: [NFC][CostModel] Fixed comment that comparisons work regardless of the state.
Daniil Fukalov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 15:24:17 PDT 2021
dfukalov created this revision.
dfukalov added reviewers: david-arm, sdesmalen.
Herald added a subscriber: dexonsmith.
dfukalov requested review of this revision.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104068
Files:
llvm/include/llvm/Support/InstructionCost.h
Index: llvm/include/llvm/Support/InstructionCost.h
===================================================================
--- llvm/include/llvm/Support/InstructionCost.h
+++ llvm/include/llvm/Support/InstructionCost.h
@@ -74,8 +74,8 @@
/// 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104068.351278.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/ebac059c/attachment.bin>
More information about the llvm-commits
mailing list