inlining: Also apply statement effects when declining to inline (#46775)
* inlining: Also apply statement effects when declining to inline
When inlining, we already determine what the effects for all
the different cases are, so that we can apply appropriate statement
flags on each of the edges. However, if for some reason we decided
to decline to inline, we weren't making use of this information.
Fix that.
* make it work.
Co-authored-by: Shuhei Kadowaki <aviatesk@gmail.com>