Hi, The microMIPS port benefits from an additional peephole2 pass. Sched2 exposes some opportunities to recognize the movep instruction. Does this look okay to commit?
Thanks, Catherine 2012-07-19 Catherine Moore <c...@codesourcery.com> Chao-ying Fu <f...@mips.com> * passes.c (init_optimization_passes): Run peephole2 after sched2. Index: passes.c =================================================================== --- passes.c (revision 189440) +++ passes.c (working copy) @@ -1589,6 +1589,7 @@ init_optimization_passes (void) NEXT_PASS (pass_leaf_regs); NEXT_PASS (pass_split_before_sched2); NEXT_PASS (pass_sched2); + NEXT_PASS (pass_peephole2); NEXT_PASS (pass_stack_regs); { struct opt_pass **p = &pass_stack_regs.pass.sub;