public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1485] Minor improvement to compare elimination
@ 2021-06-15 16:43 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2021-06-15 16:43 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6d43ec50966cafb339eb6a370a5d767a24f673e1
commit r12-1485-g6d43ec50966cafb339eb6a370a5d767a24f673e1
Author: Jeff Law <jeffreyalaw@gmail.com>
Date: Tue Jun 15 12:42:42 2021 -0400
Minor improvement to compare elimination
gcc/
* compare-elim.c (try_eliminate_compare): Run DCE to clean things
up before eliminating comparisons.
Diff:
---
gcc/compare-elim.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/compare-elim.c b/gcc/compare-elim.c
index 85085cd6973..607eadc3d96 100644
--- a/gcc/compare-elim.c
+++ b/gcc/compare-elim.c
@@ -906,6 +906,7 @@ try_eliminate_compare (struct comparison *cmp)
static unsigned int
execute_compare_elim_after_reload (void)
{
+ df_set_flags (DF_LR_RUN_DCE);
df_analyze ();
gcc_checking_assert (!all_compares.exists ());
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-15 16:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 16:43 [gcc r12-1485] Minor improvement to compare elimination Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).