OSDN Git Service

[AMDGPU] Fold V_CNDMASK with identical source operands
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 24 Mar 2017 18:55:20 +0000 (18:55 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 24 Mar 2017 18:55:20 +0000 (18:55 +0000)
commita332f465b2628acb1ecd4d27065c0e230f477b04
treecb0cf830713f5dc16c434a4849b4c87319a60755
parent1007ee7060df408bc27483d8e167021562a0cac6
[AMDGPU] Fold V_CNDMASK with identical source operands

Such instructions sometimes appear after lowering and folding.

Differential Revision: https://reviews.llvm.org/D31318

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298723 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFoldOperands.cpp
test/CodeGen/AMDGPU/fold-cndmask.mir [new file with mode: 0644]