• shivadbhavsar's avatar
    Parallelize evaluations in propagate_constant (#1220) · bf603a76
    shivadbhavsar authored
    Addressing issue #1166 - propagate_constant pass currently uses a recursive approach to find all instructions in a module that can be evaluated to a literal and performs the replacement in the same call.
    
    New approach:
    
    Perform single pass though instructions in the module to determine which instructions can be evaluated
    Evaluate selected instructions in parallel
    Replace the selected instructions with the corresponding literal
    bf603a76
propagate_constant.cpp 1.96 KB