Re: [patch] Clean up code looking for call rtx

2012-10-16 Thread Eric Botcazou
> In RTL land it's not trivial to find a CALL rtx inside a CALL_INSN, > and code to find the CALL is duplicated in a few places. The attached > patch cleans this up. > > Bootstrapped&tested on powerpc64-unknown-linux-gnu. OK for trunk? Sure, thanks. > P.S. question: when is XEXP(call,0) _not_ a

[patch] Clean up code looking for call rtx

2012-10-16 Thread Steven Bosscher
Hello, In RTL land it's not trivial to find a CALL rtx inside a CALL_INSN, and code to find the CALL is duplicated in a few places. The attached patch cleans this up. Bootstrapped&tested on powerpc64-unknown-linux-gnu. OK for trunk? Ciao! Steven P.S. question: when is XEXP(call,0) _not_ a MEM?