[PATCH] D143448: [NVPTX] Lower extraction of upper half of i32/i64 as partial move.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 11:41:16 PST 2023


tra created this revision.
Herald added subscribers: mattd, gchakrabarti, asavonic, bixia, hiraditya.
Herald added a project: All.
tra added a reviewer: jlebar.
tra published this revision for review.
Herald added subscribers: llvm-commits, pcwang-thead, jholewinski.
Herald added a project: LLVM.

This produces better SASS than right-shift + truncate and is fairly common for
CUDA code that operates on __half2 values represented as opaque integer.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143448

Files:
  llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
  llvm/test/CodeGen/NVPTX/f16-instructions.ll
  llvm/test/CodeGen/NVPTX/f16x2-instructions.ll
  llvm/test/CodeGen/NVPTX/idioms.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143448.495330.patch
Type: text/x-patch
Size: 7668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230207/9c884853/attachment.bin>


More information about the llvm-commits mailing list