Re: [x86] RFA: Use new rtl iterators in ix86_loop_unroll_adjust

2014-10-27 Thread Uros Bizjak
On Sat, Oct 25, 2014 at 11:11 AM, Richard Sandiford wrote: > This is part of a series to remove uses of for_each_rtx from the ports. > > It looks like this code should be iterating over the pattern rather than > the full insn, or do MEMs in notes really count? If we iterate over the > pattern the

[x86] RFA: Use new rtl iterators in ix86_loop_unroll_adjust

2014-10-25 Thread Richard Sandiford
This is part of a series to remove uses of for_each_rtx from the ports. It looks like this code should be iterating over the pattern rather than the full insn, or do MEMs in notes really count? If we iterate over the pattern then there should be no need for the test for null. Tested by making su