]> granicus.if.org Git - llvm/commit
[AMDGPU] Fix an issue in `op_sel_hi` skipping.
authorMichael Liao <michael.hliao@gmail.com>
Mon, 22 Apr 2019 22:05:49 +0000 (22:05 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Mon, 22 Apr 2019 22:05:49 +0000 (22:05 +0000)
commit77d3eb784a6de6077bc6e5d59866aa9dc028ce03
tree03585543f872b8d01b9c6b9f913417d1d35ac96f
parent80d580cd44ae6367b2c462d8e2254df3c11ce086
[AMDGPU] Fix an issue in `op_sel_hi` skipping.

Summary:
- Only apply packed literal `op_sel_hi` skipping on operands requiring
  packed literals. Even an instruction is `packed`, it may have operand
  requiring non-packed literal, such as `v_dot2_f32_f16`.

Reviewers: rampitec, arsenm, kzhuravl

Subscribers: jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFoldOperands.cpp
test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.ll