[all-commits] [llvm/llvm-project] 8609df: AMDGPU: Refine undef handling for llvm.amdgcn.clas...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jun 1 15:36:22 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8609df7c6e91301af72080caab01b2edcef78b33
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
    M llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll

  Log Message:
  AMDGPU: Refine undef handling for llvm.amdgcn.class intrinsic

This barely matters since 99% are converted to the generic intrinsic now,
and the only real difference is the target intrinsic supports a variable
test mask. Start propagating poison. Prefer folding to a defined result (false)
for an undef test mask. Propagate undef for the first operand.

More information about the All-commits mailing list