[llvm] [DAG] SelectionDAG.computeKnownBits - add NSW/NUW flags support to ISD::SHL handling (PR #89877)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 03:41:04 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 b82a4bfb54284d96ab065596620e260319045330 1b5d17771995ffda95d3351d791646027f25b9f2 -- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index bde6d654fe..88394ec310 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3498,7 +3498,7 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
 
     bool NUW = Op.getNode()->Flags.hasNoUnsignedWrap();
     bool NSW = Op.getNode()->Flags.hasNoSignedWrap();
-    
+
     bool ShAmtNonZero = Known2.isNonZero();
 
     Known = KnownBits::shl(Known, Known2, NUW, NSW, ShAmtNonZero);

``````````

</details>


https://github.com/llvm/llvm-project/pull/89877


More information about the llvm-commits mailing list