[PATCH] D118973: [NVPTX] Eliminate StoreRetval instructions with undef operand

Daniil Kovalev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 23:41:31 PST 2022


kovdan01 created this revision.
kovdan01 added reviewers: tra, jholewinski, jlebar.
Herald added subscribers: asavonic, hiraditya.
kovdan01 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Previously a lot of StoreRetval instructions with undef operand were generated
on NVPTX target when a big struct was returned by value. It resulted in a lot
of unneeded st.param.* instructions in final assembly. The patch solves the
issue by implementing the logic in NVPTX-specific part of DAG combiner.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118973

Files:
  llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
  llvm/test/CodeGen/NVPTX/store-retval.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118973.405878.patch
Type: text/x-patch
Size: 10524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/7ee7f0d7/attachment.bin>


More information about the llvm-commits mailing list