diff options
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/profile.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/libdimension/profile.c b/libdimension/profile.c index 337a025..557e385 100644 --- a/libdimension/profile.c +++ b/libdimension/profile.c @@ -49,19 +49,14 @@ static void dmnsn_profile_globalize(void *ptr) { dmnsn_branch *branch = ptr; - if (dmnsn_profile) { - dmnsn_branch *global - = dmnsn_dictionary_at(dmnsn_profile, branch->location); - if (global) { - global->predicted += branch->predicted; - global->branches += branch->branches; - dmnsn_free(branch->location); - } else { - dmnsn_dictionary_insert(dmnsn_profile, branch->location, - branch); - } - } else { + dmnsn_branch *global = dmnsn_dictionary_at(dmnsn_profile, branch->location); + if (global) { + global->predicted += branch->predicted; + global->branches += branch->branches; dmnsn_free(branch->location); + } else { + dmnsn_dictionary_insert(dmnsn_profile, branch->location, + branch); } } |