2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
* final.c (shorten_branches): Fix check for basic asm.
From-SVN: r231371
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.
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));