[llvm] [SelectionDAG] Handle VSCALE in isKnownNeverZero (PR #97789)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 23:02:01 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 db782b44b3471c0ab41950c3f79d0ea7b916c135 7f2edf3465b7aa0d2d555c40217fe017f37e6aed -- 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 139e86a009..27c297af39 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5627,7 +5627,7 @@ bool SelectionDAG::isKnownNeverZero(SDValue Op, unsigned Depth) const {
     const Function &F = getMachineFunction().getFunction();
     const APInt &Multiplier = Op.getConstantOperandAPInt(0);
     ConstantRange CR =
-      getVScaleRange(&F, Op.getScalarValueSizeInBits()).multiply(Multiplier);
+        getVScaleRange(&F, Op.getScalarValueSizeInBits()).multiply(Multiplier);
     if (!CR.getUnsignedMin().isZero())
       return true;
     break;

``````````

</details>


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


More information about the llvm-commits mailing list