Ignore:
Timestamp:
Oct 28, 2015, 12:47:36 PM (3 years ago)
Author:
nmedfort
Message:

Made code sinking a full code motion pass.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/optimizers/codemotionpass.h

    r4853 r4854  
    1010class PabloFunction;
    1111
    12 class CodeSinking {
     12class CodeMotionPass {
    1313    struct ScopeSet : public std::vector<PabloBlock *> {
    1414        inline bool insert(PabloBlock * block) {
     
    3030    static bool optimize(PabloFunction & function);
    3131protected:
    32     void sink(PabloBlock & block);
    33     CodeSinking() { }
     32    static void process(PabloBlock & block);
     33    static bool isAcceptableTarget(Statement *stmt, ScopeSet & scopeSet, const PabloBlock & block);
     34    static void sink(PabloBlock & block);   
     35    static void hoistLoopInvariants(While * loop);
    3436};
    3537
Note: See TracChangeset for help on using the changeset viewer.