source: icGREP/icgrep-devel/icgrep/pablo/optimizers/pablo_simplifier.hpp @ 4532

Last change on this file since 4532 was 4419, checked in by nmedfort, 5 years ago

Some code clean up and improvements to the CSE optimization.

File size: 452 bytes
Line 
1#ifndef PABLO_SIMPLIFIER_HPP
2#define PABLO_SIMPLIFIER_HPP
3
4#include <pablo/codegenstate.h>
5
6namespace pablo {
7
8struct ExpressionTable;
9
10class Simplifier {
11public:
12    static bool optimize(PabloBlock & block);
13protected:
14    Simplifier();
15private:
16    static void eliminateRedundantCode(PabloBlock & block, ExpressionTable * predecessor = nullptr);
17    static void deadCodeElimination(PabloBlock & block);
18private:
19
20};
21
22}
23#endif // PABLO_SIMPLIFIER_HPP
Note: See TracBrowser for help on using the repository browser.