Ignore:
Timestamp:
Jun 15, 2017, 12:39:20 PM (2 years ago)
Author:
nmedfort
Message:

Back up check-in. Should have no effect on current programs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/cpudriver.cpp

    r5493 r5510  
    155155        PM.add(createVerifierPass());
    156156    }
    157     PM.add(createPromoteMemoryToRegisterPass()); //Force the use of mem2reg to promote stack variables.
    158     PM.add(createReassociatePass());             //Reassociate expressions.
    159     PM.add(createGVNPass());                     //Eliminate common subexpressions.
    160     PM.add(createInstructionCombiningPass());    //Simple peephole optimizations and bit-twiddling.
    161     PM.add(createCFGSimplificationPass());
     157    PM.add(createPromoteMemoryToRegisterPass());    // Promote stack variables to constants or PHI nodes
     158    PM.add(createCFGSimplificationPass());          // Remove dead basic blocks and unnecessary branch statements / phi nodes
     159    PM.add(createEarlyCSEPass());                   // Simple common subexpression elimination pass
     160    PM.add(createInstructionCombiningPass());       // Simple peephole optimizations and bit-twiddling.
     161    PM.add(createReassociatePass());                // Canonicalizes commutative expressions
     162    PM.add(createGVNPass());                        // Global value numbering redundant expression elimination pass
     163    PM.add(createCFGSimplificationPass());          // Repeat CFG Simplification to "clean up" any newly found redundant phi nodes
    162164
    163165    if (LLVM_UNLIKELY(codegen::DebugOptionIsSet(codegen::ShowIR))) {
Note: See TracChangeset for help on using the changeset viewer.