Fix commented debug output code

This commit is contained in:
Mathias Baumann 2019-03-12 19:46:52 +01:00
parent f95388011b
commit 6b60e90cde

View File

@ -196,13 +196,15 @@ ExpressionClasses::Id ExpressionClasses::tryToSimplify(Expression const& _expr)
if (auto match = rules.findFirstMatch(_expr, *this))
{
// Debug info
//cout << "Simplifying " << *_expr.item << "(";
//for (Id arg: _expr.arguments)
// cout << fullDAGToString(arg) << ", ";
//cout << ")" << endl;
//cout << "with rule " << match->first.toString() << endl;
//ExpressionTemplate t(match->second());
//cout << "to " << match->second().toString() << endl;
if (false)
{
cout << "Simplifying " << *_expr.item << "(";
for (Id arg: _expr.arguments)
cout << fullDAGToString(arg) << ", ";
cout << ")" << endl;
cout << "with rule " << match->pattern.toString() << endl;
cout << "to " << match->action().toString() << endl;
}
return rebuildExpression(ExpressionTemplate(match->action(), _expr.item->location()));
}