[all-commits] [llvm/llvm-project] 7e1422: [DAGCombiner] Fold step_vector with add/mul/shl

junparser via All-commits all-commits at lists.llvm.org
Thu Apr 15 03:07:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e1422c1e43023e4cd5fbb3305f8dbf2d626e87e
      https://github.com/llvm/llvm-project/commit/7e1422c1e43023e4cd5fbb3305f8dbf2d626e87e
  Author: Jun Ma <JunMa at linux.alibaba.com>
  Date:   2021-04-15 (Thu, 15 Apr 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/sve-stepvector.ll

  Log Message:
  -----------
  [DAGCombiner] Fold step_vector with add/mul/shl

This patch implements some DAG combines for STEP_VECTOR:
add step_vector(C1), step_vector(C2) -> step_vector(C1+C2)
add (add X step_vector(C1)), step_vector(C2) -> add X step_vector(C1+C2)
mul step_vector(C1), C2 -> step_vector(C1*C2)
shl step_vector(C1), C2 -> step_vector(C1<<C2)

TestPlan: check-llvm

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




More information about the All-commits mailing list