[all-commits] [llvm/llvm-project] 2c8836: [LV] Don't consider predicated insts as invariant ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Sep 29 12:33:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c8836c899015cce49a399a6bc47b260a24a22e7
      https://github.com/llvm/llvm-project/commit/2c8836c899015cce49a399a6bc47b260a24a22e7
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-09-29 (Sun, 29 Sep 2024)

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

  Log Message:
  -----------
  [LV] Don't consider predicated insts as invariant unconditionally in CM.

Predicated instructions cannot hoisted trivially, so don't treat them as
uniform value in the cost model.

This fixes a difference between legacy and VPlan-based cost model.

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



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