Commit deb8237f by Ulrich Weigand Committed by Ulrich Weigand

re PR target/82960 (spu_machine_dependent_reorg does not handle jump_table_data insn)


gcc/
	PR target/82960
	* config/spu/spu.c (pad_bb): Only check INSN_CODE when INSN_P is true.

From-SVN: r255508
parent f6422f23
2017-12-08 Ulrich Weigand <uweigand@de.ibm.com>
PR target/82960
* config/spu/spu.c (pad_bb): Only check INSN_CODE when INSN_P is true.
2017-12-08 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/83609
......@@ -2029,8 +2029,9 @@ pad_bb(void)
for (; insn; insn = next_insn)
{
next_insn = next_active_insn (insn);
if (INSN_CODE (insn) == CODE_FOR_iprefetch
|| INSN_CODE (insn) == CODE_FOR_hbr)
if (INSN_P (insn)
&& (INSN_CODE (insn) == CODE_FOR_iprefetch
|| INSN_CODE (insn) == CODE_FOR_hbr))
{
if (hbr_insn)
{
......@@ -2048,7 +2049,7 @@ pad_bb(void)
}
hbr_insn = insn;
}
if (INSN_CODE (insn) == CODE_FOR_blockage && next_insn)
if (INSN_P (insn) && INSN_CODE (insn) == CODE_FOR_blockage && next_insn)
{
if (GET_MODE (insn) == TImode)
PUT_MODE (next_insn, TImode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment