combine: Fix various shortcomings in make_more_copies (PR87701, PR87780)
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 29 Oct 2018 07:36:45 +0000 (08:36 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 29 Oct 2018 07:36:45 +0000 (08:36 +0100)
commitaef7647f4a0a5a344ca7c3b5e2a9f18123949411
treeba4685bfb0dc73e16e3d48106196d77812c10b34
parent6679694ac9a9b1103d0697a660554cdd1febf68a
combine: Fix various shortcomings in make_more_copies (PR87701, PR87780)

This rewrites most of make_more_copies, in the process fixing a few PRs
and some other bugs, and working around a few target problems.  Certain
notes turn out to actually change the meaning of the RTL, so we cannot
drop them; and i386 takes subregs of hard regs.

PR rtl-optimization/87701
PR rtl-optimization/87780
* combine.c (make_more_copies): Rewrite.

From-SVN: r265582
gcc/ChangeLog
gcc/combine.c