[CODEGEN] Make sure peephole is called before anything else in codegen

This commit is contained in:
Philippe Tillet
2021-03-28 17:08:38 -04:00
committed by Philippe Tillet
parent 167a2e4b1a
commit 3f6ba1020d

View File

@@ -147,6 +147,8 @@ std::tuple<std::shared_ptr<driver::module>,
codegen::generator isel(&axes, &layouts, &align, &allocation, &swizzle, target.get(), opt.num_warps);
// run passes
dce.run(ir);
peephole.run(ir);
dce.run(ir);
pipeline.run(ir);
dce.run(ir);
disassociate.run(ir);