[all-commits] [llvm/llvm-project] c259d3: [AMDGPU] Fix for folding v2.16 literals.

Daniil Fukalov via All-commits all-commits at lists.llvm.org
Wed Sep 9 15:39:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c259d3a061c8fc0f9520208eb265d4352a0ad447
      https://github.com/llvm/llvm-project/commit/c259d3a061c8fc0f9520208eb265d4352a0ad447
  Author: dfukalov <daniil.fukalov at amd.com>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
    M llvm/test/CodeGen/AMDGPU/shrink-add-sub-constant.ll

  Log Message:
  -----------
  [AMDGPU] Fix for folding v2.16 literals.

It was found some packed immediate operands (e.g. `<half 1.0, half 2.0>`) are
incorrectly processed so one of two packed values were lost.

Introduced new function to check immediate 32-bit operand can be folded.
Converted condition about current op_sel flags value to fall-through.

Fixes: SWDEV-247595

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D87158




More information about the All-commits mailing list