| 87 | } |
| 88 | |
| 89 | string DoCSE(const std::function<bool(const Node*)>& consider_fn = nullptr) { |
| 90 | string before = CanonicalGraphString(&graph_); |
| 91 | LOG(ERROR) << "Before rewrites: " << before; |
| 92 | |
| 93 | OptimizeCSE(&graph_, consider_fn); |
| 94 | |
| 95 | string result = CanonicalGraphString(&graph_); |
| 96 | LOG(ERROR) << "After rewrites: " << result; |
| 97 | return result; |
| 98 | } |
| 99 | |
| 100 | const string& OriginalGraph() const { return original_; } |
| 101 |
nothing calls this directly
no test coverage detected