[all-commits] [llvm/llvm-project] 954ed0: [VPlan] Simplify MUL operands at recipe construction.

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Sep 2 13:26:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 954ed05c1001489802ae43d4bea403181570a799
      https://github.com/llvm/llvm-project/commit/954ed05c1001489802ae43d4bea403181570a799
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-09-02 (Mon, 02 Sep 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
    A llvm/test/Transforms/LoopVectorize/AArch64/mul-simplification.ll

  Log Message:
  -----------
  [VPlan] Simplify MUL operands at recipe construction.

This moves the logic to create simplified operands using SCEV to MUL
recipe creation. This is needed to match the behavior of the legacy's cost
model. TODOs are to extend to other opcodes and move to a transform.

Note that this also restricts the number of SCEV simplifications we
apply to more precisely match the cases handled by the legacy cost
model.

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



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