[llvm] [IndVars] Generate zext nneg when locally obvious (PR #70823)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 09:36:50 PDT 2023


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 6be0e979896f7dd610abf263f845c532f1be3762 0d658e39e60826af720f0468eb03aa24d847f0e1 -- llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index 7834b83c238a..7f8c8a45af62 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -1705,7 +1705,7 @@ bool WidenIV::widenWithVariantUse(WidenIV::NarrowIVDefUse DU) {
           return I;
         }
       }
-      
+
       if (ExtKind == ExtendKind::Zero)
         return Builder.CreateZExt(V, WideBO->getType());
       else

``````````

</details>


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


More information about the llvm-commits mailing list