[all-commits] [llvm/llvm-project] 35713d: DAG: Skip poison elements in BUILD_VECTOR computeK...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jul 31 11:16:31 PDT 2026


  Branch: refs/heads/users/arsenm/dag-knownbits-poison-elts
  Home:   https://github.com/llvm/llvm-project
  Commit: 35713df69d67587b31b1c71640cc0eeccc2f7f89
      https://github.com/llvm/llvm-project/commit/35713df69d67587b31b1c71640cc0eeccc2f7f89
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll
    M llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll
    M llvm/test/CodeGen/X86/avx512-trunc.ll
    M llvm/test/CodeGen/X86/build-vector-known-bits-poison.ll
    M llvm/test/CodeGen/X86/fpclamptosat_vec.ll
    M llvm/test/CodeGen/X86/ifma-combine-vpmadd52.ll
    M llvm/test/CodeGen/X86/kmov.ll
    M llvm/test/CodeGen/X86/pr120906.ll
    M llvm/test/CodeGen/X86/shrink_vmul.ll
    M llvm/test/CodeGen/X86/srem-vector-lkk.ll
    M llvm/test/CodeGen/X86/vector-mulfix-legalize.ll

  Log Message:
  -----------
  DAG: Skip poison elements in BUILD_VECTOR computeKnownBits

This defends against regressions in future patches. Copies the logic
from the IR version of computeKnownBits's handling of ConstantVector.
I'm not sure why the IR version doesn't directly return a value for poison,
but this follows suit.

Co-authored-by: Claude (Claude-Opus-4.8)



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