Hi!
The testcase below is miscompiled, because insert_insn_end_bb
inserts the hoisted insn before the instruction that sets up
the pseudo it is using. When it is searching for a parameter
load of a call with EH edge and the parameter load has been CSEd
out (r3 is incoming argument as well as outgoing argument and contains the
same value), it will keep searching till the beginning of the BB.
This has been fixed on mainline by Dale Johannesen, ok for
4.0 (and the testcase for HEAD as well)?
Bootstrapped/regtested on {i386,x86_64,ia64,ppc,ppc64,s390,s390x}-linux.