[VPlan] Make sure recurrence splice is not inserted between phis.
authorFlorian Hahn <flo@fhahn.com>
Mon, 8 Nov 2021 17:42:32 +0000 (17:42 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 8 Nov 2021 17:42:32 +0000 (17:42 +0000)
commite3bfb6a14646fd3b344c491a5f46aaebd43090a7
tree51e0c016a8d93dd6b2d4a0e32095ea4269d12fe3
parent304edbb553d04341227c8766621e024d6f9fd390
[VPlan] Make sure recurrence splice is not inserted between phis.

All phi-like recipes should be at the beginning of a VPBasicBlock with
no other recipes in between. Ensure that the recurrence-splicing recipe
is not added between phi-like recipes, but after them.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D111301
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/induction.ll