[all-commits] [llvm/llvm-project] 8f45cf: [SystemZ] Handle pointer size correctly in getVect...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Fri May 29 00:08:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f45cf9822a5840925836457b78ba4d515ef8da5
      https://github.com/llvm/llvm-project/commit/8f45cf9822a5840925836457b78ba4d515ef8da5
  Author: Jonas Paulsson <paulson1 at linux.ibm.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/SystemZ/cmp-ext-01.ll

  Log Message:
  -----------
  [SystemZ] Handle pointer size correctly in getVectorBitmaskConversionCost(). (#200171)

Unfortunately, getScalarSizeInBits() returns 0 for PointerTy, which
means that the loop vectorizer got way too high costs for sext i1 after
a compare(ptr, 0).

There is already a version of getScalarSizeInBits() in
SystemZTargetTransformInfo.cpp that handles this, so this is fixed by
using this in the needed places.

As a result, a few more loops are vectorized, and perl improves ~1%.



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