On Thu, Apr 16, 2015 at 10:43 AM, Thomas Preud'homme wrote: > 2015-04-15 Thomas Preud'homme <thomas.preudho...@arm.com> > Steven Bosscher <stevenb....@gmail.com> > > * cprop.c (cprop_reg_p): New. > (hash_scan_set): Use above function to check if register can be > propagated. > (find_avail_set): Return up to two sets, one whose source is > a register and one whose source is a constant. Sets are returned in > an array passed as parameter rather than as a return value. > (cprop_insn): Use a do while loop rather than a goto. Try each of the > sets returned by find_avail_set, starting with the one whose source is > a constant. Use cprop_reg_p to check if register can be propagated. > (do_local_cprop): Use cprop_reg_p to check if register can be > propagated. > (implicit_set_cond_p): Likewise.
I wouldn't usually approve patches I've coded bits in myself. But this post is now 7 days old and it's Thomas' patch for 99%, so... OK for trunk. Can you please put steven at gcc.gnu.org for my e-mail address in the ChangeLog entry? Ciao! Steven