[AMDGPU] Skip additional folding on the same operand.
authorMichael Liao <michael.hliao@gmail.com>
Wed, 23 Oct 2019 19:19:06 +0000 (15:19 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 24 Oct 2019 15:30:22 +0000 (11:30 -0400)
commitb2a65f0d70f529ce52004934867461fa5329da63
tree5062ab0e64a29243ff24dec3a0b58944428fe50f
parent950b800c451f918771228a7a7890d868954a61f3
[AMDGPU] Skip additional folding on the same operand.

Reviewers: rampitec, arsenm

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69355
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/test/CodeGen/AMDGPU/fold-imm-copy.mir
llvm/test/CodeGen/AMDGPU/operand-folding.ll