[PATCH] D69355: [AMDGPU] Skip additional folding on the same operand.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 23 13:15:43 PDT 2019


hliao created this revision.
hliao added reviewers: rampitec, arsenm.
Herald added subscribers: llvm-commits, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
hliao added a comment.

This patch fixes a crash, which is caused by the same instruction is added as a candidate twice after commuting.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69355

Files:
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/test/CodeGen/AMDGPU/operand-folding.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69355.226176.patch
Type: text/x-patch
Size: 3479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191023/7d6c9587/attachment.bin>


More information about the llvm-commits mailing list