Commit 5dd2902a by Bernd Edlinger Committed by Bernd Edlinger

final.c (shorten_branches): Fix check for basic asm.

2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * final.c (shorten_branches): Fix check for basic asm.

From-SVN: r231371
parent 2b7482f8
2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
* final.c (shorten_branches): Fix check for basic asm.
* ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
basic asm.
......@@ -1157,7 +1157,7 @@ shorten_branches (rtx_insn *first)
int inner_uid = INSN_UID (inner_insn);
int inner_length;
if (GET_CODE (body) == ASM_INPUT
if (GET_CODE (PATTERN (inner_insn)) == ASM_INPUT
|| asm_noperands (PATTERN (inner_insn)) >= 0)
inner_length = (asm_insn_count (PATTERN (inner_insn))
* insn_default_length (inner_insn));
......
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