Commit 8b28251b authored by Khalique Ahmed's avatar Khalique Ahmed
Browse files

update to replace module inputs, move pass down

parent a8409aba
......@@ -76,6 +76,9 @@ void auto_contiguous::apply(module& m) const
if(new_args != args)
{
if(not ins->module_inputs().empty())
m.replace_instruction(ins, ins->get_operator(), new_args, ins->module_inputs());
else
m.replace_instruction(ins, ins->get_operator(), new_args);
}
// shape s = ins->get_shape();
......
......@@ -132,7 +132,6 @@ std::vector<pass> target::get_passes(migraphx::context& gctx, const compile_opti
dead_code_elimination{},
prefuse_ops{},
dead_code_elimination{},
auto_contiguous{},
optimize_module{},
fuse_pointwise{},
dead_code_elimination{},
......@@ -144,6 +143,7 @@ std::vector<pass> target::get_passes(migraphx::context& gctx, const compile_opti
dead_code_elimination{},
enable_pass(mlir_enabled(), fuse_mlir{&ctx}),
dead_code_elimination{},
auto_contiguous{},
lowering{&ctx, options.offload_copy},
eliminate_contiguous{"gpu::contiguous"},
dead_code_elimination{},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment