]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove some VariableResolver calls that are no longer needed
authorMikko Rasa <tdb@tdb.fi>
Fri, 2 Dec 2016 10:24:14 +0000 (12:24 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 2 Dec 2016 10:24:14 +0000 (12:24 +0200)
Now that nodes don't get copied when moving around the previously
resolved declaration pointers will stay valid.

source/programcompiler.cpp

index 86ea8da93d7e6866590a563c150555393903cafe..fdb2576eff5afb14c6870c02ddd5e013bf2182b3 100644 (file)
@@ -166,13 +166,11 @@ void ProgramCompiler::generate(Stage &stage)
        apply<VariableResolver>(stage);
        apply<VariableRenamer>(stage);
        apply<LegacyConverter>(stage);
-       apply<VariableResolver>(stage);
 }
 
 bool ProgramCompiler::optimize(Stage &stage)
 {
        apply<ConstantConditionEliminator>(stage);
-       apply<VariableResolver>(stage);
 
        set<Node *> unused = apply<UnusedVariableLocator>(stage);
        set<Node *> unused2 = apply<UnusedFunctionLocator>(stage);