[llvm] [DL] Invert `getTypeStoreSize` bytes-bits relationship to avoid `divideCeil` (PR #106757)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 09:35:39 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 18e55052d6c7da765bbec311b1b6ac9590a2bfa3 2ac0fead6c29cd9262789a23038054ffd5e4cd06 --extensions h -- llvm/include/llvm/IR/DataLayout.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/DataLayout.h b/llvm/include/llvm/IR/DataLayout.h
index 96e284726c..172ae81e72 100644
--- a/llvm/include/llvm/IR/DataLayout.h
+++ b/llvm/include/llvm/IR/DataLayout.h
@@ -422,7 +422,8 @@ public:
/// For example, returns 5 for i36 and 10 for x86_fp80.
TypeSize getTypeStoreSize(Type *Ty) const {
TypeSize StoreSizeInBits = getTypeStoreSizeInBits(Ty);
- return {StoreSizeInBits.getKnownMinValue() / 8, StoreSizeInBits.isScalable()};
+ return {StoreSizeInBits.getKnownMinValue() / 8,
+ StoreSizeInBits.isScalable()};
}
/// Returns the maximum number of bits that may be overwritten by
``````````
</details>
https://github.com/llvm/llvm-project/pull/106757
More information about the llvm-commits
mailing list