Skip to content

Commit

Permalink
- use simplifyTimeIndepFuncCalls module
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12049 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 13, 2012
1 parent 2357b68 commit 9462043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -8331,13 +8331,13 @@ end simplifyTimeIndepFuncCalls0;
protected function traversersimplifyTimeIndepFuncCalls
"function traversersimplifyTimeIndepFuncCalls
author: Frenkel TUD 2012-06"
input tuple<DAE.Exp,tuple<BackendDAE.Variables,Boolean>> tpl;
input tuple<DAE.Exp,tuple<BackendDAE.Variables,Boolean>> itpl;
output tuple<DAE.Exp,tuple<BackendDAE.Variables,Boolean>> outTpl;
protected
DAE.Exp e;
tuple<BackendDAE.Variables,Boolean> tpl;
algorithm
(e,tpl) := tpl;
(e,tpl) := itpl;
outTpl := Expression.traverseExp(e,traverserExpsimplifyTimeIndepFuncCalls,tpl);
end traversersimplifyTimeIndepFuncCalls;

Expand Down
3 changes: 2 additions & 1 deletion Compiler/Util/Flags.mo
Expand Up @@ -556,7 +556,8 @@ constant ConfigFlag POST_OPT_MODULES = CONFIG_FLAG(15, "postOptModules",
// "relaxSystem",
// "removeSimpleEquations",
// "countOperations",
"removeUnusedFunctions"
"removeUnusedFunctions",
"simplifyTimeIndepFuncCalls"
}),
SOME(STRING_DESC_OPTION({
("lateInline", "perform function inlining for function with annotation LateInline=true"),
Expand Down

0 comments on commit 9462043

Please sign in to comment.