[all-commits] [llvm/llvm-project] 57a6f6: [LV] Simplify condition for induction recipe inser...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Aug 21 07:58:25 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57a6f6579c97cd68815092d6238a54e193a06c01
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-08-21 (Mon, 21 Aug 2023)

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

  Log Message:
  [LV] Simplify condition for induction recipe insertion (NFCI).

Split off independent suggestion from D157037. This simplifies the
condition to decide if a recipe needs to be inserted to the header phi
section or simply appended.

The assertion has been updated to allow cases where the first non-phi
recipe is the end of the block, in which case inserting before this
point is equivalent to appending.

More information about the All-commits mailing list