Ignore:
Timestamp:
Sep 23, 2016, 4:12:41 PM (3 years ago)
Author:
nmedfort
Message:

Initial work for incorporating Types into Pablo AST.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/optimizers/schedulingprepass.cpp

    r4919 r5160  
    7171            const PabloBlock * scope = cast<Statement>(use)->getParent();
    7272            if (scope != block) {
    73                 for (PabloBlock * prior = scope->getParent(); prior; scope = prior, prior = prior->getParent()) {
     73                for (PabloBlock * prior = scope->getPredecessor (); prior; scope = prior, prior = prior->getPredecessor ()) {
    7474                    if (prior == block) {
    7575                        assert (scope->getBranch());
     
    114114                    // if this statement isn't an Assign or Next node, it cannot come from a nested scope
    115115                    // unless the function is invalid.
    116                     for (PabloBlock * prior = scope->getParent(); prior; scope = prior, prior = prior->getParent()) {
     116                    for (PabloBlock * prior = scope->getPredecessor (); prior; scope = prior, prior = prior->getPredecessor ()) {
    117117                        // Was this instruction computed by a nested block?
    118118                        if (prior == block) {
Note: See TracChangeset for help on using the changeset viewer.