Adjust handling of word sized subregs for OP_OUT
authorRobert Suchanek <robert.suchanek@imgtec.com>
Fri, 16 Jan 2015 12:31:11 +0000 (12:31 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Fri, 16 Jan 2015 12:31:11 +0000 (12:31 +0000)
gcc/
* lra-constraints.c (curr_insn_transform): Change a reload pseudo of
type OP_OUT to OP_INOUT.

From-SVN: r219730

gcc/ChangeLog
gcc/lra-constraints.c

index b9f45a05201c7984841c92ecdd45d40e1533c0af..b4a1ed73846a79b9b67aab31881dc980b6981de9 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
+
+       * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
+       type OP_OUT to OP_INOUT.
+
 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
 
        * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
index f102fe5010fab474d2a7736e721d9f4802ee003a..6e4be72fedd953ab10055cb944a4c7a48305a2c1 100644 (file)
@@ -3802,6 +3802,8 @@ curr_insn_transform (bool check_only_p)
                                  (ira_class_hard_regs[goal_alt[i]][0],
                                   GET_MODE (reg), byte, mode) >= 0)))))
                {
+                 if (type == OP_OUT)
+                   type = OP_INOUT;
                  loc = &SUBREG_REG (*loc);
                  mode = GET_MODE (*loc);
                }