[CODEGEN] Removed unnecessary coalescing rematerialization
This commit is contained in:
committed by
Philippe Tillet
parent
5995cbff8e
commit
a8f1b85c5f
@@ -116,8 +116,11 @@ void coalesce::run(ir::module &mod) {
|
|||||||
// update list of values to rematerialize
|
// update list of values to rematerialize
|
||||||
if(axes.empty())
|
if(axes.empty())
|
||||||
continue;
|
continue;
|
||||||
for(auto it = ++axes.rbegin(); it != axes.rend(); it++)
|
for(auto it = ++axes.rbegin(); it != axes.rend(); it++){
|
||||||
|
if(it->second.size() == 1)
|
||||||
|
continue;
|
||||||
remat.insert(remat.begin(), it->second.begin(), it->second.end());
|
remat.insert(remat.begin(), it->second.begin(), it->second.end());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// rematerialize values
|
// rematerialize values
|
||||||
for(ir::io_inst *r: remat) {
|
for(ir::io_inst *r: remat) {
|
||||||
|
Reference in New Issue
Block a user