[PATCH] D30310: [NVPTX] Fixed invalid use of immediate arguments for .f16x2 instructions.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 13:19:09 PST 2017


tra created this revision.

This is a minor change on top of https://reviews.llvm.org/D30057 which fixes a bug that got fixed after https://reviews.llvm.org/D30057 was approved.

Previously (in https://reviews.llvm.org/D30057) ReplaceUses() resulted in a constant being passed as an
immediate argument to an .f16x2 instruction which does not accept
them. It also triggers a crash in ptxas.

This patch moves handling of constant v2f16 BUILD_VECTOR to lowering phase
which allows instruction selection to work correctly.


https://reviews.llvm.org/D30310

Files:
  lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
  lib/Target/NVPTX/NVPTXISelDAGToDAG.h
  lib/Target/NVPTX/NVPTXISelLowering.cpp
  lib/Target/NVPTX/NVPTXISelLowering.h
  test/CodeGen/NVPTX/f16x2-instructions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30310.89555.patch
Type: text/x-patch
Size: 7227 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170223/8ba5cbd7/attachment.bin>


More information about the llvm-commits mailing list