Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

mlir::ExecutionEngine isn't using the opt pipeline #120

Closed

Description

@bondhugula

Although ExecutionEngine::create takes an optimizing pass pipeline as input, that argument ('transformer') remains unused --- a previous commit changed that and so its doc comment is inaccurate. As a result, code generated by 'mlir-cpu-runner -O3' for example is vastly different than that by '... | mlir-translate -mlir-to-llvmir | opt -O3 | llc -O3'.
This impacts both mlir-cpu-runner and the toy example language (examples/toy/Ch5/toyc.cpp).

Expected<std::unique_ptr<ExecutionEngine>> ExecutionEngine::create(

Activity

  1. nicolasvasilache commented on Sep 4, 2019

    @nicolasvasilache

    thanks for your report, sending a fix soon.

  2. bondhugula commented on Sep 5, 2019

    @bondhugula
    ContributorAuthor

    @nicolasvasilache Thanks for the quick fix! While this runs the opt O3 passes, the right/specified optimization level would still not be used for the actual machine code generation - sort of like using -O3 with 'opt' but using no opt with 'llc'. (It can impact performance significantly.) I"ll send a fix for this latter part.

  3. added a commit that references this issue on Dec 24, 2019
    cf26e5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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