[llvm] [BranchFolding] Add a hook to override tail merge size (PR #99025)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 05:48:25 PDT 2024


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 5c8eb83ce8e4ef40fbd61a05f1de6394eb908da4 6c2c8fc42d4e540ece65af5cbe1f5ce6bb4f4f75 --extensions h,cpp -- llvm/include/llvm/CodeGen/TargetInstrInfo.h llvm/lib/CodeGen/BranchFolding.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/CodeGen/TargetInstrInfo.h b/llvm/include/llvm/CodeGen/TargetInstrInfo.h
index f0728cd4cc..d6a73d1644 100644
--- a/llvm/include/llvm/CodeGen/TargetInstrInfo.h
+++ b/llvm/include/llvm/CodeGen/TargetInstrInfo.h
@@ -2228,9 +2228,7 @@ public:
 
   /// Returns the target-specific default value for tail merging.
   /// This value will be used if the tail-merge-size argument is not provided.
-  virtual unsigned getTailMergeSize() const {
-    return 3;
-  }
+  virtual unsigned getTailMergeSize() const { return 3; }
 
   /// Returns the callee operand from the given \p MI.
   virtual const MachineOperand &getCalleeOperand(const MachineInstr &MI) const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/99025


More information about the llvm-commits mailing list