]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cse.c
Makefile.in (OBJS): Add rtlhooks.o.
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 25 May 2004 12:04:17 +0000 (12:04 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Tue, 25 May 2004 12:04:17 +0000 (12:04 +0000)
commit2f93eea8612d4ced2eeee52db5ce66bd75303455
tree0fecbc9fb7d6fe74247aea9809ba392638ca87c6
parent11338cda74ae54f5f8a86a271bcd04cb604ec806
Makefile.in (OBJS): Add rtlhooks.o.

2004-05-25  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.in (OBJS): Add rtlhooks.o.
(rtlanal.o): Depend on function.h.
(cse.o): Depend on rtlhooks-def.h.
(combine.o): Depend on rtlhooks-def.h.
(rtlhooks.o): New rule.
* combine.c: Include rtlhooks-def.h.
(nonzero_bits, cached_nonzero_bits, nonzero_bits1,
num_sign_bit_copies, cached_num_sign_bit_copies,
num_sign_bit_copies1): Move most of the code to rtlanal.c.
(reg_nonzero_bits_for_combine,
reg_num_sign_bit_copies_for_combine): New functions holding
the remnants of the above.
(combine_rtl_hooks): New.
(combine_instructions): Set rtl_hooks instead of gen_lowpart.
* cse.c: Include rtlhooks-def.h.
(cse_rtl_hooks): New.
(cse_main): Set rtl_hooks instead of gen_lowpart.
* emit-rtl.c (gen_lowpart): Remove.
(gen_lowpart_general): Move to rtlhooks.c.
* rtl.h (nonzero_bits, num_sign_bit_copies,
struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
(gen_lowpart_general): Remove.
(gen_lowpart): Temporarily redefine as a macro.
* rtlanal.c: Include function.h.
(nonzero_bits, cached_nonzero_bits, nonzero_bits1,
num_sign_bit_copies, cached_num_sign_bit_copies,
num_sign_bit_copies1): New, from combine.c.
* rtlhooks.c: New file.

From-SVN: r82234
gcc/ChangeLog
gcc/Makefile.in
gcc/combine.c
gcc/cse.c
gcc/emit-rtl.c
gcc/rtl.h
gcc/rtlanal.c
gcc/rtlhooks-def.h [new file with mode: 0644]
gcc/rtlhooks.c [new file with mode: 0644]