[PATCH] D89536: [AMDGPU] Do not generate S_CMP_LG_U64 on gfx7

Piotr Sobczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 03:40:26 PDT 2020


piotr created this revision.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
piotr requested review of this revision.
Herald added a subscriber: wdng.

S_CMP_LG_U64 was added in gfx8 and is guarded by hasScalarCompareEq64().

Rewrite S_CMP_LG_U64 to S_OR_B32 + S_CMP_LG_U32 for targets that
do not support 64-bit scalar compare.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89536

Files:
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/test/CodeGen/AMDGPU/expand-scalar-carry-out-select-user.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89536.298586.patch
Type: text/x-patch
Size: 4407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201016/ed73507d/attachment.bin>


More information about the llvm-commits mailing list