[llvm] [InstCombine] Fix Failure to convert vector fp comparisons that can be represented as integers #82241 (PR #83274)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 07:26:47 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 f410f74cd5b26319b5796e0404c6a0f3b5cc00a5 07773ad4c428bc77947b9fd4c0374e059b3ca334 -- llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 9cbf920bc7..5b55eea1d5 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -7527,8 +7527,7 @@ Instruction *InstCombinerImpl::foldFCmpIntToFPConst(FCmpInst &I,
if (IntTy->isVectorTy()) {
Value *RHSV = Builder.CreateVectorSplat(
- cast<VectorType>(IntTy)->getElementCount(),
- Builder.getInt(RHSInt));
+ cast<VectorType>(IntTy)->getElementCount(), Builder.getInt(RHSInt));
return new ICmpInst(Pred, LHSI->getOperand(0), RHSV);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/83274
More information about the llvm-commits
mailing list