[llvm] [TTI] getCommonMaskedMemoryOpCost - consistently use getScalarizationOverhead instead of ExtractElement costs for address/mask extraction. (PR #87771)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 05:21:51 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 08bb121835be432ac52372f92845950628ce9a4a be2e085655acee5abc9cd29fae3581d0d0f572ba -- llvm/include/llvm/CodeGen/BasicTTIImpl.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/BasicTTIImpl.h b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
index 90b8eb1453..18f10020e0 100644
--- a/llvm/include/llvm/CodeGen/BasicTTIImpl.h
+++ b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
@@ -229,7 +229,7 @@ private:
                   /*Insert=*/false, /*Extract=*/true, CostKind)
             : 0;
 
-  // The cost of the scalar loads/stores.
+    // The cost of the scalar loads/stores.
     InstructionCost MemoryOpCost =
         VF *
         getMemoryOpCost(Opcode, VT->getElementType(), Alignment, 0, CostKind);

``````````

</details>


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


More information about the llvm-commits mailing list