Message ID | b8fe6b25-2506-34f0-6989-24373da6b3be@gmail.com |
---|---|
State | New |
Headers | show |
Series | [RFA] Minor improvement to compare elimination | expand |
> I've bootstrapped and regression tested this on x86_64, though I doubt > it makes any difference there. BUt I'd bet it would help other targets > that don't expose double-word operations and have a condition code that > is clobbered by most instructions. > > OK for the trunk? Sure, thanks.
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 ());