[llvm] [Reassociate] Preserve NSW flags after expr tree rewriting (PR #93105)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 10:48: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 c98a79939234e41f5b95ddfa1651c732daa10cda c8edf9bf6c7e297256ca32e0de3fb638789710ac -- llvm/include/llvm/Transforms/Scalar/Reassociate.h llvm/lib/Transforms/Scalar/Reassociate.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Transforms/Scalar/Reassociate.h b/llvm/include/llvm/Transforms/Scalar/Reassociate.h
index 48a8f4083e..9708715881 100644
--- a/llvm/include/llvm/Transforms/Scalar/Reassociate.h
+++ b/llvm/include/llvm/Transforms/Scalar/Reassociate.h
@@ -67,7 +67,8 @@ struct OverflowTracking {
   bool HasNUW;
   bool HasNSW;
   bool AllKnownNonNegative;
-  OverflowTracking(void) : HasNUW(true), HasNSW(true), AllKnownNonNegative(true) {}
+  OverflowTracking(void)
+      : HasNUW(true), HasNSW(true), AllKnownNonNegative(true) {}
 };
 
 class XorOpnd;

``````````

</details>


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


More information about the llvm-commits mailing list