[llvm] TargetSchedule: factor out code in computeOperandLatency (NFC) (PR #73769)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 01:54:10 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff dad73bcd802c35bc877d0ec1ceef3722bafb0f33 a442916cdac8dcc67062b2cdc8afc5676be6c769 -- llvm/lib/CodeGen/TargetSchedule.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/TargetSchedule.cpp b/llvm/lib/CodeGen/TargetSchedule.cpp
index 40b822079e..933c43063d 100644
--- a/llvm/lib/CodeGen/TargetSchedule.cpp
+++ b/llvm/lib/CodeGen/TargetSchedule.cpp
@@ -196,7 +196,7 @@ unsigned TargetSchedModel::computeOperandLatency(
// applicable to the InstrItins model. InstrSchedModel should model all
// special cases without TII hooks.
return OperLatency.has_value() ? OperLatency
- : std::max(InstrLatency, DefaultDefLatency);
+ : std::max(InstrLatency, DefaultDefLatency);
}
// hasInstrSchedModel()
``````````
</details>
https://github.com/llvm/llvm-project/pull/73769
More information about the llvm-commits
mailing list