rtl-optimization/105577 - RTL DSE and non-call EH
authorRichard Biener <rguenther@suse.de>
Thu, 12 May 2022 12:03:32 +0000 (14:03 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 19 May 2022 12:00:49 +0000 (14:00 +0200)
commitb251f8be6b018966edad5daeb45c42fd193b24b4
tree345482d474338097659cf494cb83e7ce0b1b4acd
parent844a5c8ca768dc0cc90c1a943756610832d686a8
rtl-optimization/105577 - RTL DSE and non-call EH

When one of the first two stages of DSE removes a throwing stmt
we have to purge dead EH edges before the DF re-analyze fires off
a fast DCE since that cannot cope with the situation.

2022-05-12  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/105577
* dse.cc (rest_of_handle_dse): Make sure to purge dead EH
edges before running fast DCE via df_analyze.

(cherry picked from commit dfda40f8147412328f699628a54b0aaa584776e7)
gcc/dse.cc