Skip to content

Commit f9e6d67

Browse files
committed
- Removed cref filter argument in call to Inst.instClassIn in Lookup.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
1 parent 182730c commit f9e6d67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Compiler/FrontEnd/Lookup.mo

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,6 @@ algorithm
11981198
Env.Cache cache;
11991199
Option<DAE.Const> cnstForRange;
12001200
Absyn.Path path,scope;
1201-
Option<DAE.ComponentRef> filterCref;
12021201
Boolean unique;
12031202
DAE.ExpType ety;
12041203
Env.AvlTree ht;
@@ -1243,13 +1242,12 @@ algorithm
12431242
Util.setStatefulBoolean(inState,true);
12441243
env3 = Env.openScope(env2, encflag, SOME(n), Env.restrictionToScopeType(r));
12451244
ci_state = ClassInf.start(r, Env.getEnvName(env3));
1246-
filterCref = makeOptIdentOrNone(cref);
12471245
// Debug.fprintln("instTrace", "LOOKUP VAR IN PACKAGES ICD: " +& Env.printEnvPathStr(env3) +& " var: " +& ComponentReference.printComponentRefStr(cref));
12481246
(cache,env5,_,_,_,_,_,_,_,_,_,_) =
12491247
Inst.instClassIn(
12501248
cache,env3,InnerOuter.emptyInstHierarchy,UnitAbsyn.noStore,
12511249
DAE.NOMOD(), Prefix.NOPRE(), Connect.emptySet,
1252-
ci_state, c, SCode.PUBLIC(), {}, /*true*/false, Inst.INNER_CALL(), ConnectionGraph.EMPTY, filterCref);
1250+
ci_state, c, SCode.PUBLIC(), {}, /*true*/false, Inst.INNER_CALL(), ConnectionGraph.EMPTY, NONE());
12531251
(cache,p_env,attr,ty,bind,cnstForRange,splicedExpData,componentEnv,name) = lookupVarInPackages(cache,env5,cref,prevFrames,inState);
12541252
then
12551253
(cache,p_env,attr,ty,bind,cnstForRange,splicedExpData,componentEnv,name);

0 commit comments

Comments
 (0)