[VPlan] Move remove dead recipes before merging regions.
authorFlorian Hahn <flo@fhahn.com>
Thu, 7 Jul 2022 03:38:37 +0000 (20:38 -0700)
committerFlorian Hahn <flo@fhahn.com>
Thu, 7 Jul 2022 03:38:38 +0000 (20:38 -0700)
commit17d48c31695674c5b8d1c422eff01bfa86c230f1
tree0abd25217111173760e7b6764fea7f28845f3013
parente3b4452e078c3f0d4db95a800712b2bf3354196d
[VPlan] Move remove dead recipes before merging regions.

This can enable additional region merging,  while not losing
opportunities as region merging does not produce dead recipes.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D128831
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll