Re: [PATCH] Don't return original value from gen_lowpart_no_emit rtl hook (PR debug/55717)

2012-12-18 Thread Paolo Bonzini
Il 17/12/2012 22:33, Jakub Jelinek ha scritto: Hi! If gen_lowpart_if_possible returns NULL, the default rtl_hooks.gen_lowpart_no_emit hook returns the original value, which is not of the desired mode. I bet in most passes for real insns such rtx is then meant to fail recog and thrown away,

[PATCH] Don't return original value from gen_lowpart_no_emit rtl hook (PR debug/55717)

2012-12-17 Thread Jakub Jelinek
Hi! If gen_lowpart_if_possible returns NULL, the default rtl_hooks.gen_lowpart_no_emit hook returns the original value, which is not of the desired mode. I bet in most passes for real insns such rtx is then meant to fail recog and thrown away, but for DEBUG_INSN modification that doesn't work,