comparison gcc/regstat.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Scanning of rtl for dataflow analysis. 1 /* Scanning of rtl for dataflow analysis.
2 Copyright (C) 2007-2018 Free Software Foundation, Inc. 2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
3 Contributed by Kenneth Zadeck (zadeck@naturalbridge.com). 3 Contributed by Kenneth Zadeck (zadeck@naturalbridge.com).
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it under 7 GCC is free software; you can redistribute it and/or modify it under
322 if ((DF_REF_FLAGS (use) & DF_REF_AT_TOP) == 0) 322 if ((DF_REF_FLAGS (use) & DF_REF_AT_TOP) == 0)
323 bitmap_set_bit (live, DF_REF_REGNO (use)); 323 bitmap_set_bit (live, DF_REF_REGNO (use));
324 324
325 FOR_BB_INSNS_REVERSE (bb, insn) 325 FOR_BB_INSNS_REVERSE (bb, insn)
326 { 326 {
327 if (!NONDEBUG_INSN_P (insn))
328 continue;
329
330 gcc_assert (INSN_UID (insn) < (int) DF_INSN_SIZE ());
327 struct df_insn_info *insn_info = DF_INSN_INFO_GET (insn); 331 struct df_insn_info *insn_info = DF_INSN_INFO_GET (insn);
328 unsigned int regno; 332 unsigned int regno;
329
330 if (!NONDEBUG_INSN_P (insn))
331 continue;
332 333
333 /* Process the defs. */ 334 /* Process the defs. */
334 if (CALL_P (insn)) 335 if (CALL_P (insn))
335 { 336 {
336 bitmap_iterator bi; 337 bitmap_iterator bi;