2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/61215
* lra-elelimination.c (lra_eliminate_regs_1): Don't use
simplify_gen_subreg until final substitution.
From-SVN: r210838
+2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
+
+ PR rtl-optimization/61215
+ * lra-elelimination.c (lra_eliminate_regs_1): Don't use
+ simplify_gen_subreg until final substitution.
+
2014-05-23 Alan Modra <amodra@gmail.com>
PR target/61231
alter_subreg (&x, false);
return x;
}
+ else if (! subst_p)
+ {
+ /* LRA can transform subregs itself. So don't call
+ simplify_gen_subreg until LRA transformations are
+ finished. Function simplify_gen_subreg can do
+ non-trivial transformations (like truncation) which
+ might make LRA work to fail. */
+ SUBREG_REG (x) = new_rtx;
+ return x;
+ }
else
return simplify_gen_subreg (GET_MODE (x), new_rtx,
GET_MODE (new_rtx), SUBREG_BYTE (x));