Skip to content

Commit

Permalink
- Use simplify1 instead of simplify as it is marginally faster (simpl…
Browse files Browse the repository at this point in the history
…ify does nothing extra for DAE.CALL and DAE.ASUB anyway)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9059 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 20, 2011
1 parent 7d38420 commit f0fd442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -484,7 +484,7 @@ algorithm
Debug.fprintln("sei", "elab_exp CALL...") "Function calls PA. Only positional arguments are elaborated for now. TODO: Implement elaboration of named arguments." ;
(cache,e_1,prop,st_1) = elabCall(cache,env, fn, args, nargs, impl, st,pre,info,Error.getNumErrorMessages());
c = Types.propAllConst(prop);
(e_1,_) = ExpressionSimplify.simplify(e_1);
(e_1,_) = ExpressionSimplify.simplify1(e_1);
Debug.fprintln("sei", "elab_exp CALL done");
then
(cache,e_1,prop,st_1);
Expand Down Expand Up @@ -4365,7 +4365,7 @@ algorithm

// Use the first of the returned values from the function.
DAE.PROP(ty, c) :: _ = Types.propTuplePropList(p);
(arrexp_1,_) = ExpressionSimplify.simplify(Expression.makeAsubAddIndex(arrexp_1, 1));
(arrexp_1,_) = ExpressionSimplify.simplify1(Expression.makeAsubAddIndex(arrexp_1, 1));
elt_ty = Types.arrayElementType(ty);
tp = Types.elabType(ty);
call = Expression.makeBuiltinCall(inFnName, {arrexp_1}, tp);
Expand Down

0 comments on commit f0fd442

Please sign in to comment.