This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42893] [4.3/4.4/4.5/4.6 Regression] Missed conditionally dead store elimination
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 02:27:57 +0000
- Subject: [Bug tree-optimization/42893] [4.3/4.4/4.5/4.6 Regression] Missed conditionally dead store elimination
- Auto-submitted: auto-generated
- References: <bug-42893-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42893
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |law at redhat dot com
Resolution| |FIXED
Target Milestone|4.3.6 |4.6.0
--- Comment #10 from Jeffrey A. Law <law at redhat dot com> 2011-01-27 02:27:36 UTC ---
DSE1 removes tui_refreshing_registers = 1 as it's a dead store.
DOM2 then removes tui_refreshing_registers = 0 because it's able to prove the
memory location already holds the value 0.
That ultimately leaves an empty function as we leave the tree-ssa optimizers,
which is precisely what we want.