[CODEGEN][ANALYSIS] cleaning: moving towards better polymorphism for

tile layouts
This commit is contained in:
Philippe Tillet
2020-01-20 11:55:34 -05:00
parent fbf2a3f56f
commit 382ca2c745
11 changed files with 130 additions and 109 deletions

View File

@@ -27,9 +27,9 @@ void liveness::run(ir::module &mod) {
// create live intervals
for(auto &x: layouts_->get_all()) {
layout_t* layout = x.second;
if(layout->type != SHARED)
if(x.second->type != SHARED)
continue;
layout_shared_t* layout = x.second->to_shared();
// users
std::set<ir::user*> users;
for(ir::value *v: layout->values){