aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-04-05 15:23:54 +0200
committerRichard Biener <rguenther@suse.de>2022-05-04 09:51:19 +0200
commit1ba68f78c9d2510eb095f7d8a90c87cd5fd4183d (patch)
tree4e1fb053f4fddbc9bcf465f41088e9d6d898613f /gcc/cp/lambda.cc
parentc4ae175881f773383f392ee39bad4ac1c0fa53ca (diff)
downloadgcc-1ba68f78c9d2510eb095f7d8a90c87cd5fd4183d.zip
gcc-1ba68f78c9d2510eb095f7d8a90c87cd5fd4183d.tar.gz
gcc-1ba68f78c9d2510eb095f7d8a90c87cd5fd4183d.tar.bz2
debug/105158 - improve debug stmt retaining for forwarder removal
Currently when we cannot move debug stmt from a forwarder to the destination block we drop/reset them. But in some cases as for the testcase we can move them to the predecessor when that has a single successor and we can insert after the last stmt of the block. That allows us to preserve debug info here. 2022-04-05 Richard Biener <rguenther@suse.de> PR debug/105158 * tree-cfgcleanup.cc (move_debug_stmts_from_forwarder): Move debug stmts to the predecessor if moving to the destination is not possible. (remove_forwarder_block): Adjust. (remove_forwarder_block_with_phi): Likewise.
Diffstat (limited to 'gcc/cp/lambda.cc')
0 files changed, 0 insertions, 0 deletions