[all-commits] [llvm/llvm-project] 4acdb8: [VectorCombine] Scalarize extracts of ZExt if prof...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jul 3 00:49:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4acdb8e14ef7e72d5f56b45d51de72c7b797be03
      https://github.com/llvm/llvm-project/commit/4acdb8e14ef7e72d5f56b45d51de72c7b797be03
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/AArch64/ext-extract.ll

  Log Message:
  -----------
  [VectorCombine] Scalarize extracts of ZExt if profitable. (#142976)

Add a new scalarization transform that tries to convert extracts of a
vector ZExt to a set of scalar shift and mask operations. This can be
profitable if the cost of extracting is the same or higher than the cost
of 2 scalar ops. This is the case on AArch64 for example.

For AArch64,this shows up in a number of workloads, including av1aom,
gmsh, minizinc and astc-encoder.

PR: https://github.com/llvm/llvm-project/pull/142976



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