[CODEGEN] Make sure peephole is called before anything else in codegen
This commit is contained in:
committed by
Philippe Tillet
parent
167a2e4b1a
commit
3f6ba1020d
@@ -147,6 +147,8 @@ std::tuple<std::shared_ptr<driver::module>,
|
|||||||
codegen::generator isel(&axes, &layouts, &align, &allocation, &swizzle, target.get(), opt.num_warps);
|
codegen::generator isel(&axes, &layouts, &align, &allocation, &swizzle, target.get(), opt.num_warps);
|
||||||
// run passes
|
// run passes
|
||||||
dce.run(ir);
|
dce.run(ir);
|
||||||
|
peephole.run(ir);
|
||||||
|
dce.run(ir);
|
||||||
pipeline.run(ir);
|
pipeline.run(ir);
|
||||||
dce.run(ir);
|
dce.run(ir);
|
||||||
disassociate.run(ir);
|
disassociate.run(ir);
|
||||||
|
Reference in New Issue
Block a user