[llvm] [NVPTXLowerArgs] Add align attribute to return value of addrspace.wrap intrinsic (PR #153889)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 15:47:26 PDT 2025
================
@@ -1027,9 +1027,16 @@ static inline bool isAddLike(const SDValue V) {
(V->getOpcode() == ISD::OR && V->getFlags().hasDisjoint());
}
+static SDValue stripAssertAlign(SDValue N) {
+ while (N.getOpcode() == ISD::AssertAlign)
+ N = N.getOperand(0);
----------------
AlexMaclean wrote:
I think it is probably safe to assume there will only be one of these, so I'd consider removing the while.
https://github.com/llvm/llvm-project/pull/153889
More information about the llvm-commits
mailing list