[all-commits] [llvm/llvm-project] f108c6: [VPlan] Fold (MUL A, 1) -> A as VPlan2VPlan transf...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Sep 18 13:45:52 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f108c6cdc1d0cd60f7d50cdb61ed6307258e5f14
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/ARM/mve-gather-scatter-tailpred.ll
    M llvm/test/Transforms/LoopVectorize/RISCV/strided-accesses.ll
    M llvm/test/Transforms/LoopVectorize/runtime-check-needed-but-empty.ll

  Log Message:
  [VPlan] Fold (MUL A, 1) -> A as VPlan2VPlan transform.

Add first VPlan-based recipe simplification to fold (MUL A, 1) -> A.
Among other things, this enables additional simplifications after
applying versioned strides, as follow up to D147783.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D159200

More information about the All-commits mailing list