You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Repository navigation
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
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).
@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.
Activity
nicolasvasilache commentedon Sep 4, 2019
thanks for your report, sending a fix soon.
bondhugula commentedon Sep 5, 2019
@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.
Use transform function on llvm::Module in the ExecutionEngine
Revert "[MLIR] Add IndexAttr to primitive attributes kinds in tablegen."