https://github.com/david-arm commented: Hi, it's quite a tricky patch to review so I've done this in two parts. I'll take a look at the llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp changes later as well! https://github.com/llvm/llvm-project/pull/174239