[llvm] [Attributor] Propagate alignment through ptrmask (PR #150158)

Krzysztof Drewniak via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 07:19:05 PDT 2025


================
@@ -282,7 +282,7 @@ define void @delete_parallel_2() {
 ; CHECK-LABEL: define {{[^@]+}}@delete_parallel_2() {
 ; CHECK-NEXT:  entry:
 ; CHECK-NEXT:    [[A:%.*]] = alloca i32, align 4
-; CHECK-NEXT:    call void @llvm.lifetime.start.p0(ptr noundef nonnull align 4 dereferenceable(4) [[A]]) #[[ATTR18:[0-9]+]]
+; CHECK-NEXT:    call void @llvm.lifetime.start.p0(ptr noundef nonnull dereferenceable(4) [[A]]) #[[ATTR18:[0-9]+]]
----------------
krzysz00 wrote:

Do we know why this change? It should be possible to write the alignment down on lifetime.start?

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


More information about the llvm-commits mailing list