[all-commits] [llvm/llvm-project] 32bc83: [LV] Remove unneeded createHeaderBranch.(NFCI)

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Mar 31 03:49:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32bc83d11e19b8a8c15df81b32fde1f9f8c6156b
      https://github.com/llvm/llvm-project/commit/32bc83d11e19b8a8c15df81b32fde1f9f8c6156b
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-03-31 (Thu, 31 Mar 2022)

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

  Log Message:
  -----------
  [LV] Remove unneeded createHeaderBranch.(NFCI)

The only remaining use was to get the exit block of the loop. Instead of
relying on the loop, use the successor of VectorHeaderBB
(LoopMiddleBlock) directly to set VPTransformState::CFG::ExitB

Depends on D121621.

Reviewed By: Ayal

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




More information about the All-commits mailing list