[llvm] [ConstraintElim] Optimize usub.sat intrinsic based on known constraints (PR #135744)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 07:58:53 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
index 6af5d2c1c..f426c4ca9 100644
--- a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
@@ -1133,7 +1133,7 @@ void State::addInfoFor(BasicBlock &BB) {
case Intrinsic::smin:
case Intrinsic::smax:
case Intrinsic::usub_sat:
- // TODO: handle llvm.abs as well
+ // TODO: handle llvm.abs as well
WorkList.push_back(
FactOrCheck::getCheck(DT.getNode(&BB), cast<CallInst>(&I)));
// TODO: Check if it is possible to instead only added the min/max facts
``````````
</details>
https://github.com/llvm/llvm-project/pull/135744
More information about the llvm-commits
mailing list