[all-commits] [llvm/llvm-project] 6d6eea: [LV] Use SCEV to simplify wide binop operand to co...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Oct 2 05:47:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d6eea92e36c301e34a7ec11b2a40e3080f79f53
      https://github.com/llvm/llvm-project/commit/6d6eea92e36c301e34a7ec11b2a40e3080f79f53
  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/cost-constant-known-via-scev.ll

  Log Message:
  -----------
  [LV] Use SCEV to simplify wide binop operand to constant.

The legacy cost model uses SCEV to determine if the second operand of a
binary op is a constant. Update the VPlan construction logic to mirror
the current legacy behavior, to fix a difference in the cost models.

Fixes https://github.com/llvm/llvm-project/issues/109528.
Fixes https://github.com/llvm/llvm-project/issues/110440.



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