[llvm] [Attributor] Propagate alignment through ptrmask (PR #150158)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 20 04:02:18 PDT 2025
================
@@ -5203,6 +5256,8 @@ static unsigned getKnownAlignForUse(Attributor &A, AAAlign &QueryingAA,
TrackUse = true;
return 0;
}
+ if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(I))
+ return getKnownAlignForIntrinsic(A, QueryingAA, II).value();
----------------
arsenm wrote:
```suggestion
return getKnownAlignForIntrinsic(A, QueryingAA, *II).value();
```
https://github.com/llvm/llvm-project/pull/150158
More information about the llvm-commits
mailing list