[all-commits] [llvm/llvm-project] 892ef2: [AMDGPU] More codegen patterns for v2i16/v2f16 bui...

jayfoad via All-commits all-commits at lists.llvm.org
Tue Sep 22 02:42:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 892ef2e3c0b60656a95d0d9e9f458b73238b21b7
      https://github.com/llvm/llvm-project/commit/892ef2e3c0b60656a95d0d9e9f458b73238b21b7
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-09-22 (Tue, 22 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    M llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir
    M llvm/test/CodeGen/AMDGPU/fcanonicalize.f16.ll

  Log Message:
  -----------
  [AMDGPU] More codegen patterns for v2i16/v2f16 build_vector

It's simpler to do this at codegen time than to do ad-hoc constant
folding of machine instructions in SIFoldOperands.

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




More information about the All-commits mailing list