[all-commits] [llvm/llvm-project] e9a294: [VPlan] Verify plan entry and exit blocks, set cor...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Dec 7 08:26:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9a294449575a1e1a0daca470f64914695dc9adc
      https://github.com/llvm/llvm-project/commit/e9a294449575a1e1a0daca470f64914695dc9adc
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp

  Log Message:
  -----------
  [VPlan] Verify plan entry and exit blocks, set correct exit block.

Both the entry and exit blocks of the top-region of a plan must be
VPBasicBlocks. They also must have no predecessors or successors
respectively.

This invariant was broken when splitting a block for sink-after. To fix
the issue, set the exit block of the region *after* sink-after is done.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D114586




More information about the All-commits mailing list