[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

Florian Hahn via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 15 13:39:55 PST 2024


================
@@ -4561,6 +4577,10 @@ bool SROA::presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS) {
         PStore->copyMetadata(*SI, {LLVMContext::MD_mem_parallel_loop_access,
                                    LLVMContext::MD_access_group,
                                    LLVMContext::MD_DIAssignID});
+
+        if (AATags)
+          PStore->setAAMetadata(
----------------
fhahn wrote:

Should be now, I added a number of additional tests that should cover all cases here

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


More information about the llvm-branch-commits mailing list