some cleaning

This commit is contained in:
Philippe Tillet
2019-02-12 11:00:24 -05:00
parent f8e522ada8
commit e45d6bbb60
7 changed files with 72 additions and 54 deletions

View File

@@ -1,4 +1,5 @@
#include "codegen/liveness.h"
#include "codegen/buffer_info.h"
#include "ir/basic_block.h"
#include "ir/function.h"
#include "ir/module.h"
@@ -23,7 +24,7 @@ for(ir::function *fn: mod.get_function_list()){
// Creates live intervals
for(auto i: indices_){
ir::value *v = i.first;
if(!dynamic_cast<ir::copy_to_shared_inst*>(v))
if(!info_->is_shared(v) || info_->get_reference(v))
continue;
unsigned start = i.second;
unsigned end = start;