Right now the lowering from Domain IR to Parallel IR and optimizations at Parallel IR level are in the same pass, which has to deal with nested processing in a complicated manner. A refactoring to separate the lowering and optimization as their own passes would make the optimization pass easier to manage since all variables would already be in the same scope.
Right now the lowering from Domain IR to Parallel IR and optimizations at Parallel IR level are in the same pass, which has to deal with nested processing in a complicated manner. A refactoring to separate the lowering and optimization as their own passes would make the optimization pass easier to manage since all variables would already be in the same scope.