[llvm] [AutoUpgrade] Upgrade old-style !tbaa.struct field tags (PR #225967)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 00:52:59 PDT 2026
================
@@ -2554,6 +2562,8 @@ bool LLParser::parseInstructionMetadata(Instruction &Inst) {
if (MDK == LLVMContext::MD_tbaa)
InstsWithTBAATag.push_back(&Inst);
+ else if (MDK == LLVMContext::MD_tbaa_struct)
+ InstsWithTBAAStructTag.push_back(&Inst);
----------------
nikic wrote:
Textual IR (as opposed to bitcode) generally does not need to be upgraded. Given that the struct path TBAA is more than a decade old at this point, I plan to remove the existing TBAA upgrade here (starting with updating tests in https://github.com/llvm/llvm-project/pull/226051).
Not doing the upgrade for textual IR also means you don't have to work around the upgrade when testing the verifier in #225910.
https://github.com/llvm/llvm-project/pull/225967
More information about the llvm-commits
mailing list