[llvm] [VPlan] Replace VPRegionBlock with explicit CFG before execute (NFCI). (PR #117506)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 14:38:33 PDT 2025


================
@@ -124,3 +125,12 @@ bool vputils::isUniformAcrossVFsAndUFs(VPValue *V) {
         return false;
       });
 }
+
+VPBasicBlock *vputils::getTopLevelVectorLoopHeader(VPlan &Plan,
----------------
ayalz wrote:

```suggestion
VPBasicBlock *vputils::getFirstLoopHeader(VPlan &Plan,
```
as it is agnostic to loop being vector or not, can also be FirstTopLevel but First implies TopLevel?

https://github.com/llvm/llvm-project/pull/117506


More information about the llvm-commits mailing list