[all-commits] [llvm/llvm-project] b6c03d: AMDGPU/GlobalISel: Fix isExtractHiElt when selecti...

Petar Avramovic via All-commits all-commits at lists.llvm.org
Tue Aug 6 05:08:03 PDT 2024


  Branch: refs/heads/users/petar-avramovic/isExtractHiElt-fix
  Home:   https://github.com/llvm/llvm-project
  Commit: b6c03d1785bd713344c6b578869a0b36fc6473e3
      https://github.com/llvm/llvm-project/commit/b6c03d1785bd713344c6b578869a0b36fc6473e3
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-ext-fma.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fix isExtractHiElt when selecting fma_mix

isExtractHiElt should return new source register instead of returning
instruction that defines it. Src = MI.getOperand(0).getReg() is not
correct when MI(for example G_UNMERGE_VALUES) defines multiple registers.
Refactor existing code to work with source registers only.



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