[llvm] [Attributor] Propagate alignment through ptrmask (PR #150158)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 06:44:06 PDT 2025
================
@@ -5203,6 +5203,32 @@ static unsigned getKnownAlignForUse(Attributor &A, AAAlign &QueryingAA,
TrackUse = true;
return 0;
}
+ if (auto *II = dyn_cast<IntrinsicInst>(I)) {
+ if (II->getIntrinsicID() == Intrinsic::ptrmask) {
----------------
arsenm wrote:
Can you split the intrinsic case into a separate function, and switch over the intrinsic ID
https://github.com/llvm/llvm-project/pull/150158
More information about the llvm-commits
mailing list