[PATCH] D125759: [AMDGPU] Remove isLiteralConstant and isLiteralConstantLike

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 03:32:05 PDT 2022


foad created this revision.
foad added reviewers: arsenm, rampitec.
Herald added subscribers: kosarev, jsilvanus, hsmhsm, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: All.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

isLiteralConstant and isLiteralConstantLike were similar to
!isInlineConstant with slight differences like handling isReg operands.

To avoid a profusion of similar functions with undocumented differences,
this patch folds isReg handling into isInlineConstant and removes all
the isLiteralConstant* variants.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125759

Files:
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125759.429989.patch
Type: text/x-patch
Size: 7811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220517/7efe0ef0/attachment.bin>


More information about the llvm-commits mailing list