rtl-optimization/98863 - prune RD with LIVE in STV
authorRichard Biener <rguenther@suse.de>
Mon, 1 Feb 2021 08:18:43 +0000 (09:18 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 1 Feb 2021 08:21:26 +0000 (09:21 +0100)
This sets DF_RD_PRUNE_DEAD_DEFS like all other uses of the UD/DU
chain problems which makes the RD problem consume a lot less memory.

2021-02-01  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/98863
* config/i386/i386-features.c (convert_scalars_to_vector):
Set DF_RD_PRUNE_DEAD_DEFS.

gcc/config/i386/i386-features.c

index c7d64822a13569a0089193cc20e3385f4fa1b218..41891c94469143d2ad12855d7cae98f6fae1d39c 100644 (file)
@@ -1627,7 +1627,7 @@ convert_scalars_to_vector (bool timode_p)
     bitmap_initialize (&candidates[i], &bitmap_default_obstack);
 
   calculate_dominance_info (CDI_DOMINATORS);
-  df_set_flags (DF_DEFER_INSN_RESCAN);
+  df_set_flags (DF_DEFER_INSN_RESCAN | DF_RD_PRUNE_DEAD_DEFS);
   df_chain_add_problem (DF_DU_CHAIN | DF_UD_CHAIN);
   df_analyze ();