[code generation] bugfix in single buffering
This commit is contained in:
@@ -29,7 +29,7 @@ void allocation::run(){
|
||||
std::vector<ir::value *> J = I;
|
||||
|
||||
triples_map_type H;
|
||||
H.insert({0, segment{0, 100}});
|
||||
H.insert({0, segment{0, 1024}});
|
||||
|
||||
std::vector<ir::value *> V;
|
||||
std::map<ir::value *, unsigned> starts;
|
||||
@@ -116,6 +116,9 @@ void allocation::run(){
|
||||
for(auto &x: offsets_){
|
||||
allocated_size_ = std::max<size_t>(allocated_size_, x.second + get_num_bytes(x.first));
|
||||
}
|
||||
std::cout << "Allocated: " << allocated_size_ << std::endl;
|
||||
for(auto &x: offsets_)
|
||||
std::cout << x.first->get_name() << " " << x.second << std::endl;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user