[llvm] [Transforms] Resolve FIXME: Pick the smallest legal type that fits (PR #79158)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 09:05:15 PST 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 463529f31b90c9bc8c564a2071748683af166f11 aef840a8debd1d2f4aa534905af972fbe8a7bbb1 -- llvm/include/llvm/Transforms/Scalar/Float2Int.h llvm/lib/Transforms/Scalar/Float2Int.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/Float2Int.cpp b/llvm/lib/Transforms/Scalar/Float2Int.cpp
index cd3fa3087a..328ff96641 100644
--- a/llvm/lib/Transforms/Scalar/Float2Int.cpp
+++ b/llvm/lib/Transforms/Scalar/Float2Int.cpp
@@ -501,7 +501,6 @@ bool Float2IntPass::runImpl(Function &F, const DominatorTree &DT) {
walkBackwards();
walkForwards();
-
const DataLayout &DL = F.getParent()->getDataLayout();
bool Modified = validateAndTransform(DL);
``````````
</details>
https://github.com/llvm/llvm-project/pull/79158
More information about the llvm-commits
mailing list