[all-commits] [llvm/llvm-project] 094c85: [VPlan] Use vputils::findCanonicalIVIncrement in m...

Luke Lau via All-commits all-commits at lists.llvm.org
Fri Sep 25 08:04:12 PDT 2026


  Branch: refs/heads/users/lukel97/loop-vectorize/use-findcanonicalivincrement
  Home:   https://github.com/llvm/llvm-project
  Commit: 094c8507aa9077b581c863529725f466ab960c71
      https://github.com/llvm/llvm-project/commit/094c8507aa9077b581c863529725f466ab960c71
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

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

  Log Message:
  -----------
  [VPlan] Use vputils::findCanonicalIVIncrement in more places. NFC

In a future patch we want to enable more scenarios with early exits and tail folding. In these scenarios the terminator will no longer be a BranchOnCount/BranchOnCond but a BranchOnTwoConds, so a bunch of canonical IV matchers break. Use vputils::findCanonicalIVIncrement instead since it searches the users of the canonical IV instead of looking at the terminator.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list