Skip to content

Commit

Permalink
- Removed cref filter argument in call to Inst.instClassIn in Lookup.…
Browse files Browse the repository at this point in the history
…lookupVarInPackages.

  This makes the whole test suite ~35% faster, and some media tests ~97% faster.
- Updated test suite.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9583 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Aug 2, 2011
1 parent 182730c commit f9e6d67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Compiler/FrontEnd/Lookup.mo
Expand Up @@ -1198,7 +1198,6 @@ algorithm
Env.Cache cache;
Option<DAE.Const> cnstForRange;
Absyn.Path path,scope;
Option<DAE.ComponentRef> filterCref;
Boolean unique;
DAE.ExpType ety;
Env.AvlTree ht;
Expand Down Expand Up @@ -1243,13 +1242,12 @@ algorithm
Util.setStatefulBoolean(inState,true);
env3 = Env.openScope(env2, encflag, SOME(n), Env.restrictionToScopeType(r));
ci_state = ClassInf.start(r, Env.getEnvName(env3));
filterCref = makeOptIdentOrNone(cref);
// Debug.fprintln("instTrace", "LOOKUP VAR IN PACKAGES ICD: " +& Env.printEnvPathStr(env3) +& " var: " +& ComponentReference.printComponentRefStr(cref));
(cache,env5,_,_,_,_,_,_,_,_,_,_) =
Inst.instClassIn(
cache,env3,InnerOuter.emptyInstHierarchy,UnitAbsyn.noStore,
DAE.NOMOD(), Prefix.NOPRE(), Connect.emptySet,
ci_state, c, SCode.PUBLIC(), {}, /*true*/false, Inst.INNER_CALL(), ConnectionGraph.EMPTY, filterCref);
ci_state, c, SCode.PUBLIC(), {}, /*true*/false, Inst.INNER_CALL(), ConnectionGraph.EMPTY, NONE());
(cache,p_env,attr,ty,bind,cnstForRange,splicedExpData,componentEnv,name) = lookupVarInPackages(cache,env5,cref,prevFrames,inState);
then
(cache,p_env,attr,ty,bind,cnstForRange,splicedExpData,componentEnv,name);
Expand Down

0 comments on commit f9e6d67

Please sign in to comment.