[all-commits] [llvm/llvm-project] 9de327: [LV] Generalize predication checks from 2c8836c899...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Oct 2 12:17:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9de327c94d0c995803b6485fb28ac4cad1e53bbe
      https://github.com/llvm/llvm-project/commit/9de327c94d0c995803b6485fb28ac4cad1e53bbe
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/predicated-instruction-cost.ll

  Log Message:
  -----------
  [LV] Generalize predication checks from 2c8836c899 for operands.

This fixes another case where the VPlan-based and legacy cost models
disagree. If any of the operands is predicated, it can't be trivially
hoisted and we should consider the cost for evaluating it each loop
iteration.

Fixes https://github.com/llvm/llvm-project/issues/108697.



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