[llvm] [Attributor] Propagate alignment through ptrmask (PR #150158)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 24 22:58:47 PDT 2025
================
@@ -5202,6 +5252,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:
You can continue regardless of the value and refine to the maximum
https://github.com/llvm/llvm-project/pull/150158
More information about the llvm-commits
mailing list