Skip to content

Commit

Permalink
Add rematerializer to interactive optimizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Oct 28, 2018
1 parent 9a58e71 commit 0e9127a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/tools/yulopti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ class YulOpti
disambiguated = true;
}
cout << "(q)quit/(f)flatten/(c)se/(x)plit/(j)oin/(g)rouper/(h)oister/" << endl;
cout << " (e)xpr inline/(i)nline/(s)implify/(u)nusedprune/ss(a) transform/(r)edundant assign elim.? ";
cout << " (e)xpr inline/(i)nline/(s)implify/(u)nusedprune/ss(a) transform/" << endl;
cout << " (r)edundant assign elim./re(m)aterializer? ";
cout.flush();
int option = readStandardInputChar();
cout << ' ' << char(option) << endl;
Expand Down Expand Up @@ -165,6 +166,9 @@ class YulOpti
case 'r':
RedundantAssignEliminator::run(*m_ast);
break;
case 'm':
Rematerialiser{}(*m_ast);
break;
default:
cout << "Unknown option." << endl;
}
Expand Down

0 comments on commit 0e9127a

Please sign in to comment.