The functions emit_*_{before,after}* for emitting insns into the insn
stream are full of duplication. This patch series attempts to
rationalize the code by providing common building blocks for the
{,call_,jump_,debug_}insn variants that build the necessary rtxes
through the magic of function pointers.
The patch series has been bootstrapped and tested on
x86_64-unknown-linux-gnu, though that was several months ago. If the
patches are approved, I will re-bootstrap and test prior to committing.
Nathan Froyd (2):
refactor emit_*_{after,before}_noloc using common functions
refactor emit_*_{after,before}{,_setloc} using common functions
gcc/emit-rtl.c | 514 +++++++++++++++-----------------------------------------
1 files changed, 138 insertions(+), 376 deletions(-)