]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bfin.c (bfin_reorg): Call run_selective_scheduling rather than schedule_insns if...
authorBernd Schmidt <bernd.schmidt@analog.com>
Wed, 13 Jan 2010 20:00:03 +0000 (20:00 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 13 Jan 2010 20:00:03 +0000 (20:00 +0000)
* config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
rather than schedule_insns if the pass is enabled.

From-SVN: r155867

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 11ddce75edc3712489582e45a400cd323c2994a0..6b2df356dd2b8e88f121ad5c2fa3a4f5aaa09053 100644 (file)
@@ -4,6 +4,9 @@
        libgcc-std.ver.  Add entries for ___smulsi3_highpart and
        ___umulsi3_highpart.
 
+       * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
+       rather than schedule_insns if the pass is enabled.
+
 2010-01-13  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/42704
index 32d72abc2aa9c43d3716726c5ef325ca29917ad1..9635d5a627dfff6f67f4de5ae4b4bb71a4795752 100644 (file)
@@ -5499,7 +5499,11 @@ bfin_reorg (void)
       add_sched_insns_for_speculation ();
 
       timevar_push (TV_SCHED2);
-      schedule_insns ();
+      if (flag_selective_scheduling2
+         && !maybe_skip_selective_scheduling ())
+        run_selective_scheduling ();
+      else
+       schedule_insns ();
       timevar_pop (TV_SCHED2);
 
       /* Examine the schedule and insert nops as necessary for 64-bit parallel