[llvm] [Bitcode][Asm] Parse metadata value from operand bundles (PR #87570)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 18:57:55 PDT 2024
================
@@ -3135,9 +3135,21 @@ bool LLParser::parseOptionalOperandBundles(
return true;
Type *Ty = nullptr;
- Value *Input = nullptr;
- if (parseType(Ty) || parseValue(Ty, Input, PFS))
+ if (parseType(Ty))
return true;
+
+ Value *Input = nullptr;
+ // FIXME: Metadata operand bundle value is garbage when LLVM IR is
+ // compiled to bitcode, then disassembled back to LLVM IR. See PR#89649
+ // for the reproducers, and https://bugs.llvm.org/show_bug.cgi?id=51264
----------------
nikic wrote:
I don't think it makes sense to only add support for one half of this... If we add IR parsing support, then bitcode writing should also work.
https://github.com/llvm/llvm-project/pull/87570
More information about the llvm-commits
mailing list