Update SCEVExpander::expand() to check if the current expression is
available for for different insert points the loop traverses.
This ensures that existing values for LCSSA phis can be re-used; their
insert point will always be in a loop exit block, even if the expression
allows hoisting in earlier blocks.
Alternative to D132704.
Fixes #57000.