aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-12-16 13:01:40 +0100
committerRichard Biener <rguenther@suse.de>2022-12-16 13:05:48 +0100
commitda85bfc75024a92b97e60e4436863dd5789786ec (patch)
treea77e92fa94c4c4902cbbac198b2efc6c59656ba5 /gcc/tree-inline.cc
parent66c2f03d4cbfdefa489ba6280d2cbb13efec1ad1 (diff)
downloadgcc-da85bfc75024a92b97e60e4436863dd5789786ec.zip
gcc-da85bfc75024a92b97e60e4436863dd5789786ec.tar.gz
gcc-da85bfc75024a92b97e60e4436863dd5789786ec.tar.bz2
middle-end/108086 - avoid unshare_expr when remapping SSA names
r0-89280-g129a37fc319db8 added unsharing to remap_ssa_name but that wasn't in the version of the patch posted. That has some non-trivial cost through mostly_copy_tree_r and copy_tree_r but more importantly it doesn't seem to be necessary. I've successfully bootstrapped and tested with an assert we only get tree_node_can_be_shared trees here. Bootstrapped and tested on x86_64-unknown-linux-gnu with all languages. PR middle-end/108086 * tree-inline.cc (remap_ssa_name): Do not unshare the result from the decl_map.
Diffstat (limited to 'gcc/tree-inline.cc')
-rw-r--r--gcc/tree-inline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.cc b/gcc/tree-inline.cc
index 9fd971a..c6c86af 100644
--- a/gcc/tree-inline.cc
+++ b/gcc/tree-inline.cc
@@ -183,7 +183,7 @@ remap_ssa_name (tree name, copy_body_data *id)
return name;
}
- return unshare_expr (*n);
+ return *n;
}
if (processing_debug_stmt)