]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ira.c
ira.c use DF infrastructure for combine_and_move_insns
authorAlan Modra <amodra@gmail.com>
Fri, 29 Apr 2016 23:59:22 +0000 (09:29 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 29 Apr 2016 23:59:22 +0000 (09:29 +0930)
commitb00544fa6d5f94f73502017d4a1b6b28e9abdc19
treec2be77324502170b735717d52975e6d41b0bebd3
parent10e044468a4e0599c4f52ced069d39bbef8bee62
ira.c use DF infrastructure for combine_and_move_insns

This patch actually improves generated code, because REG_DEAD notes
used by the old insn scan are not always present.  On x86_64, see
gcc/wide-int-print.o:print_hex for an example of a function that is
smaller and uses one less callee saved reg.

* ira.c (combine_and_move_insns): Rather than scanning insns,
use DF infrastucture to find use and def insns.

From-SVN: r235660
gcc/ChangeLog
gcc/ira.c