diff mbox

[gomp] fix df verify failure

Message ID 55A04174.8060401@acm.org
State New
Headers show

Commit Message

Nathan Sidwell July 10, 2015, 10:04 p.m. UTC
I've committed this patch to fix a df verify crash Thomas pointed me at. 
Thomas, I think this means you can revert the workaround  you just committed?

nathan
2015-07-10  Nathan Sidwell  <nathan@codesourcery.com>

	* config/nvptx/nvptx.c (nvptx_reorg): Move df problem setting, set
	dirty flags.
diff mbox

Patch

Index: config/nvptx/nvptx.c
===================================================================
--- config/nvptx/nvptx.c	(revision 225647)
+++ config/nvptx/nvptx.c	(working copy)
@@ -2923,16 +2923,16 @@  nvptx_reorg (void)
 
   thread_prologue_and_epilogue_insns ();
 
-  df_clear_flags (DF_LR_RUN_DCE);
-  df_set_flags (DF_NO_INSN_RESCAN | DF_NO_HARD_REGS);
-  df_live_add_problem ();
-  
   /* Split blocks and record interesting unspecs.  */
   bb_insn_map_t bb_insn_map;
 
-    nvptx_split_blocks (&bb_insn_map);
+  nvptx_split_blocks (&bb_insn_map);
 
   /* Compute live regs */
+  df_clear_flags (DF_LR_RUN_DCE);
+  df_set_flags (DF_NO_INSN_RESCAN | DF_NO_HARD_REGS);
+  df_live_add_problem ();
+  df_live_set_all_dirty ();
   df_analyze ();
   regstat_init_n_sets_and_refs ();