[all-commits] [llvm/llvm-project] 78f68e: [SelectionDAG] Handle constants in SimplifyMultipl...

Harrison Hao via All-commits all-commits at lists.llvm.org
Mon Sep 28 07:02:20 PDT 2026


  Branch: refs/heads/users/harrisonGPU/dag-constant-zero
  Home:   https://github.com/llvm/llvm-project
  Commit: 78f68e5f08023f1e33b3770f8b3d1862e43d4f43
      https://github.com/llvm/llvm-project/commit/78f68e5f08023f1e33b3770f8b3d1862e43d4f43
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mul.i24.ll
    M llvm/test/CodeGen/AMDGPU/rotate-add.ll
    M llvm/test/CodeGen/AMDGPU/rotl.ll
    M llvm/test/CodeGen/AVR/issue-132203.ll
    M llvm/test/CodeGen/Mips/rotate.ll
    M llvm/test/CodeGen/PowerPC/ppc-rotate-clear.ll
    M llvm/test/CodeGen/PowerPC/rotl-2.ll
    M llvm/test/CodeGen/SystemZ/shift-04.ll
    M llvm/test/CodeGen/SystemZ/shift-08.ll

  Log Message:
  -----------
  [SelectionDAG] Handle constants in SimplifyMultipleUseDemandedBits

Replace a non-zero constant with zero when none of its set bits are
demanded.

This allows users of `SimplifyMultipleUseDemandedBits` to eliminate
irrelevant constant bits while preserving the convention that a null
SDValue indicates no simplification.



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