Skip to content

Fatal error: error in backend: Broken module found, compilation aborted! while processing profiled LLVM IR with Oz optimization #135175

Open
@iamaayushrivastava

Description

@iamaayushrivastava

Hi, I'm encountering a backend compilation error while using the LLVM inliner in release mode on a .ll file that contains call graph profile metadata.

Setup

LLVM/Clang Version: clang version 17.0.0
Commit: f4dbf5babe7a0089322ed64d1623fb31f7d51898
Target: x86_64-unknown-linux-gnu
Optimization level: -Oz

Input: LLVM IR file containing the following metadata

!33 = !{i32 5, !"CG Profile", !34}

Error message

module flag identifiers must be unique (or of 'require' type)
!"CG Profile"
fatal error: error in backend: Broken module found, compilation aborted!

Issue

When trying to process the IR with the inliner, I get a fatal backend error stating that the module flag identifiers must be unique. The error seems to be related to the !"CG Profile" flag.

Please find the attached ll file for your reference.

505-implicit.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGOProfile Guided OptimizationsllvmUmbrella label for LLVM issuesllvm:crash

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions