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

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


  Branch: refs/heads/users/harrisonGPU/dag-constant-zero
  Home:   https://github.com/llvm/llvm-project
  Commit: efea234e86e170a80856331de9e5421e8a6d85ca
      https://github.com/llvm/llvm-project/commit/efea234e86e170a80856331de9e5421e8a6d85ca
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-29 (Tue, 29 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