[llvm] [VPlan] Remove loop region in optimizeForVFAndUF. (PR #108378)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 12:40:33 PST 2025


================
@@ -487,7 +486,7 @@ void VPBasicBlock::execute(VPTransformState *State) {
   };
 
   // 1. Create an IR basic block.
-  if (this == getPlan()->getVectorPreheader() ||
+  if (this == getPlan()->getEntry() ||
----------------
fhahn wrote:

Actually this check can be removed completely, as the pre-header and entry are modeled as VPIRBasicBlocks.

Split off to 20d491bb993218eae6a13e4901da943ebd804f7a



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


More information about the llvm-commits mailing list