ConstantConditionEliminator().apply(stage);
bool any_inlined = FunctionInliner().apply(stage);
- BlockHierarchyResolver().apply(stage);
- VariableResolver().apply(stage);
+ if(any_inlined)
+ {
+ VariableResolver().apply(stage);
+ FunctionResolver().apply(stage);
+ }
/* Removing variables or functions may cause things from the previous stage
to become unused. */