[all-commits] [llvm/llvm-project] 225fc4: [AMDGPU][SDAG] Try folding "lshr i64 + mad" to "ma...

Vikram Hegde via All-commits all-commits at lists.llvm.org
Thu Jan 16 21:40:01 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 225fc4f3562002cc77e68340c7077442ca6d4d20
      https://github.com/llvm/llvm-project/commit/225fc4f3562002cc77e68340c7077442ca6d4d20
  Author: Vikram Hegde <115221833+vikramRH at users.noreply.github.com>
  Date:   2025-01-17 (Fri, 17 Jan 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/mad_64_32.ll

  Log Message:
  -----------
  [AMDGPU][SDAG] Try folding "lshr i64 + mad" to "mad_u64_u32" (#119218)

The intention is to use a "copy" instead of a "sub" to handle the high
parts of 64-bit multiply for this specific case.

This unlocks copy prop use cases where the copy can be reused by later
multiply+add sequences if possible.

Fixes: SWDEV-487672, SWDEV-487669



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