RE: [MIPS] RFA: Use new rtl iterators in mips16_rewrite_pool_refs

2014-10-25 Thread Matthew Fortune
> gcc/ > * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete. > (mips16_rewrite_pool_refs): Take the insn and constant pool as > parameters. Iterate over the instruction's pattern and return void. > (mips16_lay_out_constants): Update accordingly. OK

[MIPS] RFA: Use new rtl iterators in mips16_rewrite_pool_refs

2014-10-25 Thread Richard Sandiford
This is part of a series to remove uses of for_each_rtx from the ports. Note that the order of the UNSPEC and TARGET_MIPS16_TEXT_LOADS handling didn't matter because we never rewrite the unspec itself; the check is there to protect the contents of the unspec. Tested by making sure there were no co