On Mon, 2006-12-04 at 10:25 +0300, Maxim Kuvyrkov wrote:
This patch fixes PR target/29682 on ia64.
The bug is that we generate a speculative load into ar.lc register and
fail when try to recognize it. The patch adds necessary check to
ia64.c: ia64_speculate_insn () function so that only loads to general or fp
registers will be considered for speculation.
OK.
While looking at this patch, I noticed that the existing code isn't
handling subregs. There are two places where it checks REG_P but
doesn't handle or check for subregs. Presumably subregs can occur here,
which means we could get better optimization if we allowed them.