[all-commits] [llvm/llvm-project] 0b2cb9: AMDGPU: Add test showing bit operations that shoul...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed May 28 12:40:33 PDT 2025


  Branch: refs/heads/users/arsenm/add-not-constant-0-test
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b2cb98741077512b012667f3ed6cb6be9630e02
      https://github.com/llvm/llvm-project/commit/0b2cb98741077512b012667f3ed6cb6be9630e02
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    A llvm/test/CodeGen/AMDGPU/bit-op-reduce-width-known-bits.ll

  Log Message:
  -----------
  AMDGPU: Add test showing bit operations that should be reducible

v_xor_i64_known_i32_from_range_use_out_of_block demonstrates a regression
that appears in a future patch in the IR division expansion.

We could generalize splitBinaryBitConstantOp to use known bits. I'm
not sure if it's worth it in the original example, since the pattern
seems to disappear if I optimize the division expansion. We should
probably fix the divide expand to avoid this.



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