[llvm] [VPlan] Hoist loads with invariant addresses using noalias metadata. (PR #166247)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 06:16:42 PST 2025


================
@@ -329,83 +329,24 @@ for.end:
 define void @multi_exit(ptr %dst, ptr %src.1, ptr %src.2, i64 %A, i64 %B) #0 {
 ; CHECK-LABEL: @multi_exit(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    [[UMAX6:%.*]] = call i64 @llvm.umax.i64(i64 [[B:%.*]], i64 1)
----------------
david-arm wrote:

I think it's worth rewriting the test to so that at least one load is not loop invariant, because the test seems to care about being vectorised with multiple exits.

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


More information about the llvm-commits mailing list