[all-commits] [llvm/llvm-project] 416a50: [VPlan] Update vector latch terminator edge to exi...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Jun 4 13:23:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 416a5080d89066029f9889dc23f94de47c2fa895
      https://github.com/llvm/llvm-project/commit/416a5080d89066029f9889dc23f94de47c2fa895
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-06-04 (Sat, 04 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.cpp

  Log Message:
  -----------
  [VPlan] Update vector latch terminator edge to exit block after execution.

Instead of setting the successor to the exit using CFG.ExitBB, set it to
nullptr initially. The successor to the exit block is later set either
through createEmptyBasicBlock or after VPlan execution (because at the
moment, no block is created by VPlan for the exit block, the existing
one is reused).

This also enables BranchOnCond to be used as terminator for the exiting
block of the topmost vector region.

Depends on D126618.

Reviewed By: Ayal

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




More information about the All-commits mailing list