diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2021-06-15 12:42:42 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2021-06-15 12:43:42 -0400 |
commit | 6d43ec50966cafb339eb6a370a5d767a24f673e1 (patch) | |
tree | c4ce2fa5b570551f911fb2e3e873cdbc6da9195e /gcc | |
parent | 4602714382f7a4603290b1ceb3121d9187debdb9 (diff) | |
download | gcc-6d43ec50966cafb339eb6a370a5d767a24f673e1.zip gcc-6d43ec50966cafb339eb6a370a5d767a24f673e1.tar.gz gcc-6d43ec50966cafb339eb6a370a5d767a24f673e1.tar.bz2 |
Minor improvement to compare elimination
gcc/
* compare-elim.c (try_eliminate_compare): Run DCE to clean things
up before eliminating comparisons.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/compare-elim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/compare-elim.c b/gcc/compare-elim.c index 85085cd..607eadc 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 ()); |