[all-commits] [llvm/llvm-project] 065542: Reapply "[VPlan] Replace first-lane uses of BuildV...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Jul 4 06:55:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06554227c7005f90fee66925d9acbe249329b005
      https://github.com/llvm/llvm-project/commit/06554227c7005f90fee66925d9acbe249329b005
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-07-04 (Sat, 04 Jul 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/VPlan/buildvector-first-lane-only.ll

  Log Message:
  -----------
  Reapply "[VPlan] Replace first-lane uses of BuildVector." (#206774) (#207512)

This reverts commit 638d71403a8598bb061b874ab39b8f9c6f0a97f0.

Recommit with fix for root cause of the revert:
VPWidenRecipe::onlyFirstLaneUsed was incorrectly assuming all operands
defined outside loop region are invariant, which is not true (e.g.
BuildVector). Test added in e173245deeaa2340.

Original message:
Replace uses of the first lane of a BuildVector with the first operand.



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