Skip to content

Handle default inlining on funcOp and callOp #19498

@raikonenfnu

Description

@raikonenfnu

After llvm/llvm-project#119970 landed upstream, we are running issues compiling some of our models. It throws off:

_ IREE compile and run: open-llama-3b-v2-f16::open-llama-3b-v2-f16.mlirbc::open-llama-3b-v2-f16.mlirbc::gpu_rocm::real_weights_prefill _
Error invoking iree-compile
Error code: 1
Stderr diagnostics:
open-llama-3b-v2-f16.mlirbc:0:0: error: attempting to parse a byte at the end of the bytecode
open-llama-3b-v2-f16.mlirbc:0:0: note: in bytecode version 6 produced by: MLIR19.0.0git


/home/esaimana/iree_tests_cache/artifacts/sd3_vae/model.mlirbc:0:0: error: attempting to parse a byte at the end of ...esaimana/iree_tests_cache/artifacts/sd3_vae/model.mlirbc:0:0: note: in bytecode version 6 produced by: MLIR19.0.0git

error: expected mlir::ArrayAttr, but got: "__auto.t5...ome/nod/iree_tests_cache/artifacts/sd3_clip/model.mlirbc:0:0: note: in bytecode version 6 produced by: MLIR19.0.0git

A good way to repro this issue is to do:

wget https://sharkpublic.blob.core.windows.net/sharkpublic/sai/sd3-mmdit/model.mlirbc -O mmdit.mlirbc
/path/to/iree-opt mmdit.mlirbc -o /dev/null

expected output looks something like:
error: expected mlir::ArrayAttr, but got: "__auto.t5...ome/nod/iree_tests_cache/artifacts/sd3_clip/model.mlirbc:0:0: note: in bytecode version 6 produced by: MLIR19.0.0git

wget https://sharkpublic.blob.core.windows.net/sharkpublic/sai/sdxl-scheduled-unet/model.mlirbc
/path/to/iree-opt mmdit.mlirbc -o /dev/null

Expected output looks something like:
attempting to parse a byte at the end of note: in bytecode version 6 produced by: MLIR19.0.0git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions