OSDN Git Service

PR tree-optimize/46228
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Nov 2010 20:10:46 +0000 (20:10 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Nov 2010 20:10:46 +0000 (20:10 +0000)
* cgraph.c (cgraph_propagate_frequency): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166553 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraph.c

index 1bb3d88..429d209 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-10  Jan Hubicka  <jh@suse.cz>
+
+       PR tree-optimize/46228
+       * cgraph.c (cgraph_propagate_frequency): Fix typo.
+
 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR tree-optimization/46414
index 1451d2b..fbeb094 100644 (file)
@@ -2728,7 +2728,7 @@ cgraph_propagate_frequency (struct cgraph_node *node)
                 cgraph_node_name (node));
       changed = true;
     }
-  if (maybe_executed_once && node->frequency != NODE_FREQUENCY_EXECUTED_ONCE)
+  else if (maybe_executed_once && node->frequency != NODE_FREQUENCY_EXECUTED_ONCE)
     {
       node->frequency = NODE_FREQUENCY_EXECUTED_ONCE;
       if (dump_file)