[llvm] [NFC][LV] Improve ee with sideeffects legality test (PR #158275)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 15 00:18:52 PDT 2025
================
@@ -604,36 +604,31 @@ exit:
;; ICE was caused by assert for the load used in the uncountable exit condition
;; being guaranteed to execute.
- at e = external addrspace(21) global [4 x i8]
-define void @crash_conditional_load_for_uncountable_exit() {
+ at ee.global = external global [4 x i8]
+define void @crash_conditional_load_for_uncountable_exit(ptr dereferenceable(40) noalias %store.area) {
; CHECK-LABEL: LV: Checking a loop in 'crash_conditional_load_for_uncountable_exit'
; CHECK: LV: Not vectorizing: Load for uncountable exit not guaranteed to execute.
entry:
- br label %cont
-
-handler.out_of_bounds:
- unreachable
+ br label %for.body
-cont:
- %h.06 = phi i64 [ 0, %entry ], [ %inc, %a.exit ]
- %arrayidx = getelementptr i8, ptr addrspace(21) @e, i64 %h.06
- br i1 false, label %cont1, label %handler.type_mismatch
+for.body:
+ %iv = phi i64 [ 0, %entry ], [ %iv.next, %for.inc ]
+ %ee.addr = getelementptr i8, ptr @ee.global, i64 %iv
+ br i1 false, label %ee.block, label %invalid.block
----------------
fhahn wrote:
Do we also hit the crash with a condition passed as argument? If so, would be good to add that as additional test coverage as well.
https://github.com/llvm/llvm-project/pull/158275
More information about the llvm-commits
mailing list