[all-commits] [llvm/llvm-project] 7ebbbd: [DAG] Always use stack to promote bitcast when the...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Sat Aug 2 15:32:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ebbbd885f759ef5b7ae50a1b07f810296c4967f
      https://github.com/llvm/llvm-project/commit/7ebbbd885f759ef5b7ae50a1b07f810296c4967f
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2025-08-02 (Sat, 02 Aug 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/test/CodeGen/AMDGPU/ctpop16.ll
    M llvm/test/CodeGen/AMDGPU/kernel-args.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i16.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
    M llvm/test/CodeGen/AMDGPU/load-global-i16.ll
    M llvm/test/CodeGen/AMDGPU/load-global-i8.ll
    M llvm/test/CodeGen/AMDGPU/load-local-i16.ll
    M llvm/test/CodeGen/AMDGPU/min.ll
    M llvm/test/CodeGen/AMDGPU/shl.ll
    M llvm/test/CodeGen/AMDGPU/sra.ll
    A llvm/test/CodeGen/RISCV/rvv/fp4-bitcast.ll

  Log Message:
  -----------
  [DAG] Always use stack to promote bitcast when the source is vector (#151065)

The optimization introduced by #125637 tried to avoid using stacks to
promote bitcast with vector result type. However, it wouldn't be correct
if the input type is vector. This patch limits that optimizations to
only scalar to vector bitcasts.



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