[all-commits] [llvm/llvm-project] eea150: [VPlan] Include IV phi and backedge cost in VPlan ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jun 20 12:44:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eea150c84053035163f307b46549a2997a343ce9
      https://github.com/llvm/llvm-project/commit/eea150c84053035163f307b46549a2997a343ce9
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    A llvm/test/Transforms/LoopVectorize/WebAssembly/induction-branch-cost.ll
    A llvm/test/Transforms/LoopVectorize/WebAssembly/lit.local.cfg

  Log Message:
  -----------
  [VPlan] Include IV phi and backedge cost in VPlan cost computation.

In WebAssembly, costs != 0 are assigned to be backedge and induction
phis, so make sure we include those costs in the VPlan-based cost model.

This fixes a downstream crash with WebAssembly after 242cc200ccb
(https://github.com/llvm/llvm-project/pull/92555)



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