[all-commits] [llvm/llvm-project] 61c283: [ScalarizeMaskedMemIntrin] Use pointer alignment f...

Yeting Kuo via All-commits all-commits at lists.llvm.org
Sun Mar 3 17:41:27 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61c283db4be0c8ff1832afa754a9a6b45dcf2b06
      https://github.com/llvm/llvm-project/commit/61c283db4be0c8ff1832afa754a9a6b45dcf2b06
  Author: Yeting Kuo <46629943+yetingk at users.noreply.github.com>
  Date:   2024-03-04 (Mon, 04 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-compressstore-fp.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-compressstore-int.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-expandload-fp.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-expandload-int.ll

  Log Message:
  -----------
  [ScalarizeMaskedMemIntrin] Use pointer alignment from pointer of masked.compressstore/expandload. (#83519)

Previously we used Align(1) for all scalarized load/stores from
masked.compressstore/expandload.
For targets not supporting unaligned accesses, it make backend need to
split
aligned large width loads/stores to byte loads/stores.
To solve this performance issue, this patch preserves the alignment of
base
pointer after scalarizing.



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