[all-commits] [llvm/llvm-project] 731456: [AMDGPU] expand-fp: unify scalarization (NFC) (#1...

Frederik Harwath via All-commits all-commits at lists.llvm.org
Mon Oct 13 00:18:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7314565281ec28b745502c3f429fd431e16673eb
      https://github.com/llvm/llvm-project/commit/7314565281ec28b745502c3f429fd431e16673eb
  Author: Frederik Harwath <frederik.harwath at amd.com>
  Date:   2025-10-13 (Mon, 13 Oct 2025)

  Changed paths:
    M llvm/lib/CodeGen/ExpandFp.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll
    M llvm/test/CodeGen/AMDGPU/frem.ll
    M llvm/test/Transforms/ExpandFp/AMDGPU/frem.ll

  Log Message:
  -----------
  [AMDGPU]  expand-fp: unify scalarization (NFC) (#158588)

Extend the existing "scalarize" function which is used for the
fp-integer conversion instruction expansion to BinaryOperator
instructions and reuse it for the frem expansion; a similar function
for scalarizing BinaryOperator instructions exists in the ExpandLargeDivRem
pass and this change is a step towards merging that pass with ExpandFp.

Further refactoring: Scalarize directly instead of using the
"ReplaceVector" as a worklist, rename "Replace" vector to "Worklist",
and hoist a check for unsupported scalable vectors to the top of the
instruction visiting loop.



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