[llvm] [TBAA] Recover !tbaa for a memcpy of struct with same type fields (PR #214116)
Abhay Kanhere via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 16:47:54 PDT 2026
================
@@ -761,6 +761,22 @@ static bool getTBAAStructFieldAsInt64(const MDOperand &Op, uint64_t &Out) {
return true;
}
+// Return true if Tag is a struct-path TBAA access tag: two type nodes (base
+// and access) followed by constant integer fields (offset, and an optional
+// size and/or immutability flag). A !tbaa.struct field operand need not be
+// such a tag, so validate before reusing it as !tbaa.
+static bool isValidTBAAAccessTag(const MDNode *Tag) {
----------------
AbhayKanhere wrote:
yes moved.
https://github.com/llvm/llvm-project/pull/214116
More information about the llvm-commits
mailing list