combine: Don't do make_more_copies for dest PC (PR87720)
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 24 Oct 2018 22:34:40 +0000 (00:34 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 24 Oct 2018 22:34:40 +0000 (00:34 +0200)
commitb8ac95761a5c0a902fa2547e9345febf26713bf5
treea48e19391c14d046d4639b73ddd54954d831c418
parentf8719680bfd5adf14aa91ce3017d59f7eac7f64e
combine: Don't do make_more_copies for dest PC (PR87720)

Jumps are written in RTL as moves to PC.  But the latter has no mode,
so we shouldn't try to use it.  Since the optimization this routine
does does not really help for jumps at all, let's just skip it.

PR rtl-optimization/87720
* combine.c (make_more_copies): Skip if the dest is pc_rtx.

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