http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46823
--- Comment #17 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-11 13:29:58 UTC --- I believed that we are supposed to update the statement first and only then try to inline it. Otherwise we would get into problem with inliner not skipping the args. Anyway lookup based on call statement is good idea, but we need to resolve the problem above.