[llvm] [SCEV] BECount to zero if `((-1 + (1 smax %x))<nsw> /u %x)` holds (PR #104580)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 05:53:29 PDT 2024


================
@@ -0,0 +1,78 @@
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
+; RUN: opt -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s
+
+ at g_var = external local_unnamed_addr global i32, align 4
+
+define void @test(i32 noundef %x) {
----------------
nikic wrote:

This test looks way too complicated.

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


More information about the llvm-commits mailing list