[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

Florian Hahn via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 9 12:09:19 PST 2024


================
@@ -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) &&
----------------
fhahn wrote:

Yep, I left this to here to keep the changes small, I'll soon share this one in the chain.

https://github.com/llvm/llvm-project/pull/81285


More information about the llvm-branch-commits mailing list