================ @@ -821,13 +821,15 @@ MDNode *AAMDNodes::extendToTBAA(MDNode *MD, ssize_t Len) { AAMDNodes AAMDNodes::adjustForAccess(unsigned AccessSize) { AAMDNodes New = *this; MDNode *M = New.TBAAStruct; - New.TBAAStruct = nullptr; if (M && M->getNumOperands() == 3 && M->getOperand(0) && ---------------- dobbelaj-snps wrote:
Isn't this too strict ? Typically the TBAAStruct have operands in multiple of 3 describing {offset, size, type }. You can extract the 'first member' instead of matching the full struct. (Note: if we accept to track unions in more detail, this might get more complicated) https://github.com/llvm/llvm-project/pull/81285 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits