[llvm] [LV] Add early-exit-with-store tests (PR #140899)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 08:03:38 PDT 2025


================
@@ -470,6 +470,192 @@ loop.end:
   ret i64 %retval
 }
 
+define void @loop_contains_store_single_user(ptr dereferenceable(40) noalias %array, ptr align 2 dereferenceable(40) readonly %pred) {
----------------
david-arm wrote:

There is already an existing `@loop_contains_store` test for a simple store in the loop. Do we still need this test? It looks very similar.

Also what does `single_user` refer to in this case because the store can't have users. Are you referring to a single user of something else?

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


More information about the llvm-commits mailing list