1. [LV] Update CFG before adding runtime checks. (details)
Commit eb35ebb3a2c6db62ec54efdaff23e4f31d118c85 by flo
[LV] Update CFG before adding runtime checks.

addRuntimeChecks uses SCEVExpander, which relies on the DT/LoopInfo to
be up-to-date. Changing the CFG afterwards may invalidate some inserted
instructions, especially LCSSA phis.

Reorder the code to first update the CFG and then create the runtime
checks. This should not have any impact on the generated code, as we
adjust the CFG and generate runtime checks together.

Fixes PR47343.
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp (diff)
The file was addedllvm/test/Transforms/LoopVectorize/pr47343-expander-lcssa-after-cfg-update.ll