diff options
author | Anatoly Sokolov <aesok@post.ru> | 2015-07-31 00:25:29 +0300 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2015-07-31 00:25:29 +0300 |
commit | 3403a1a9597dd6f853c25aff2290a16d3a9c9d00 (patch) | |
tree | 7d30b2fde4a0cf5ac3d5774d1ff65ab67f3ba134 /gcc/cfgexpand.c | |
parent | e8fa381741bd504e42221463d18d0dae9eae4832 (diff) | |
download | gcc-3403a1a9597dd6f853c25aff2290a16d3a9c9d00.zip gcc-3403a1a9597dd6f853c25aff2290a16d3a9c9d00.tar.gz gcc-3403a1a9597dd6f853c25aff2290a16d3a9c9d00.tar.bz2 |
Use lowpart_subreg instead of simplify_gen_subreg
From-SVN: r226417
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index a047632..8ff79ab 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -3632,9 +3632,7 @@ convert_debug_memory_address (machine_mode mode, rtx x, return x; if (GET_MODE_PRECISION (mode) < GET_MODE_PRECISION (xmode)) - x = simplify_gen_subreg (mode, x, xmode, - subreg_lowpart_offset - (mode, xmode)); + x = lowpart_subreg (mode, x, xmode); else if (POINTERS_EXTEND_UNSIGNED > 0) x = gen_rtx_ZERO_EXTEND (mode, x); else if (!POINTERS_EXTEND_UNSIGNED) @@ -3850,9 +3848,7 @@ expand_debug_expr (tree exp) if (SCALAR_INT_MODE_P (opmode) && (GET_MODE_PRECISION (opmode) < GET_MODE_PRECISION (inner_mode))) - op1 = simplify_gen_subreg (opmode, op1, inner_mode, - subreg_lowpart_offset (opmode, - inner_mode)); + op1 = lowpart_subreg (opmode, op1, inner_mode); } break; default: @@ -4011,9 +4007,7 @@ expand_debug_expr (tree exp) } else if (CONSTANT_P (op0) || GET_MODE_PRECISION (mode) <= GET_MODE_PRECISION (inner_mode)) - op0 = simplify_gen_subreg (mode, op0, inner_mode, - subreg_lowpart_offset (mode, - inner_mode)); + op0 = lowpart_subreg (mode, op0, inner_mode); else if (UNARY_CLASS_P (exp) ? TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (exp, 0))) : unsignedp) @@ -4141,9 +4135,7 @@ expand_debug_expr (tree exp) offmode = TYPE_MODE (TREE_TYPE (offset)); if (addrmode != offmode) - op1 = simplify_gen_subreg (addrmode, op1, offmode, - subreg_lowpart_offset (addrmode, - offmode)); + op1 = lowpart_subreg (addrmode, op1, offmode); /* Don't use offset_address here, we don't need a recognizable address, and we don't want to generate @@ -4868,8 +4860,7 @@ expand_debug_source_expr (tree exp) } else if (CONSTANT_P (op0) || GET_MODE_BITSIZE (mode) <= GET_MODE_BITSIZE (inner_mode)) - op0 = simplify_gen_subreg (mode, op0, inner_mode, - subreg_lowpart_offset (mode, inner_mode)); + op0 = lowpart_subreg (mode, op0, inner_mode); else if (TYPE_UNSIGNED (TREE_TYPE (exp))) op0 = simplify_gen_unary (ZERO_EXTEND, mode, op0, inner_mode); else |