[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 GitHub
parent 6c2e3d064d
commit 4d41796d61

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);