diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2022-09-30 18:59:24 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-09-30 19:04:43 -0400 |
commit | 89b5a316cffa4a9fa2504e776a4cdc2ef492f00b (patch) | |
tree | 11aaa758cde1a97e7f97281ba1bfa3843f4e5619 /gcc/dwarf2out.cc | |
parent | 2002c54cb7f183c27ad7a5c294b868930cea17db (diff) | |
download | gcc-89b5a316cffa4a9fa2504e776a4cdc2ef492f00b.zip gcc-89b5a316cffa4a9fa2504e776a4cdc2ef492f00b.tar.gz gcc-89b5a316cffa4a9fa2504e776a4cdc2ef492f00b.tar.bz2 |
Minor cleanup/prep in DOM
It's a bit weird that free_dom_edge_info leaves a dangling pointer in e->aux.
Not sure what I was thinking.
There's two callers. One wipes e->aux immediately after the call, the other
attaches a newly created object immediately after the call. So we can wipe
e->aux within the call and simplify one of the two call sites.
This is preparatory work for a minor optimization where we want to detect
another class of edge equivalences in DOM (until something better is available)
and either attach them an existing edge_info structure or create a new one if
one doesn't currently exist for a given edge.
gcc/
* tree-ssa-dom.cc (free_dom_edge_info): Clear e->aux too.
(free_all_edge_infos): Do not clear e->aux here.
Diffstat (limited to 'gcc/dwarf2out.cc')
0 files changed, 0 insertions, 0 deletions