[llvm] [InstCombine] Fold expression using basic properties of floor and ceiling function (PR #107107)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 7 19:01:59 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 8861328303a5b1c45443bbd02338623e41df1da4 b0a37fb5bccce12217ededcc0152d252bd898d63 --extensions cpp -- 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 985801ce63..c527210bf9 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -8222,8 +8222,7 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
// fcmp ule floor(x), x => fcmp ule -inf, x
if (FloorX)
return new FCmpInst(FCmpInst::FCMP_ULE,
- ConstantFP::getInfinity(OpType, true), RHS,
- "", &I);
+ ConstantFP::getInfinity(OpType, true), RHS, "", &I);
break;
case FCmpInst::FCMP_UGT:
// fcmp ugt floor(x), x => fcmp ugt -inf, x
``````````
</details>
https://github.com/llvm/llvm-project/pull/107107
More information about the llvm-commits
mailing list