[all-commits] [llvm/llvm-project] cbd654: [VPlan] Fix optimizeFindIVReductions not negating ...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu Jul 30 23:58:47 PDT 2026


  Branch: refs/heads/release/23.x
  Home:   https://github.com/llvm/llvm-project
  Commit: cbd6540e5a2ef91bc8c8b6a10845415d40d12f45
      https://github.com/llvm/llvm-project/commit/cbd6540e5a2ef91bc8c8b6a10845415d40d12f45
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/find-last.ll

  Log Message:
  -----------
  [VPlan] Fix optimizeFindIVReductions not negating condition of blend (#213050)

Fixes #212993

#194729 made the m_Select a m_SelectLike, so FindLastSelect could now be
a blend. However we were checking the first operand to see if the Cond
needed inverted. A select has `select %cond, %true, %false`, a blend is
`blend %false, %cond, %true`, so we were failing to negate the
condition.

(cherry picked from commit 4f705acc388ab2c627fb263d89d1d60468f8a97b)



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