Skip to content

Commit

Permalink
Check performance when not adding replacements already in the hashtable
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23256 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 6, 2014
1 parent 92b4dd4 commit 027cda7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Compiler/Util/VarTransform.mo
Expand Up @@ -1030,11 +1030,9 @@ protected
HashTable3.HashTable invHt;
algorithm
REPLACEMENTS(ht,invHt) := outRepl;
/*
if BaseHashTable.hasKey(src, ht) then // TODO: Is this correct? Previously, we skipped this code which was a dead case
return;
end if;
*/
ht := BaseHashTable.add((src, dst), ht);
invHt := addReplacementInv(invHt, src, dst);
outRepl := REPLACEMENTS(ht,invHt);
Expand Down

0 comments on commit 027cda7

Please sign in to comment.