[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)
commit70603dcef22e6cd27d5dd7e544a0c479ba4f0dc5
treef8096c2ad00ccf709fa57487897d3e73a578ecdc
parent4986d9fb45e40866f5df1b04bafaa94ac41b03d4
[AMDGPU] Fold V_CNDMASK with identical source operands

Such instructions sometimes appear after lowering and folding.

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

llvm-svn: 298723
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/test/CodeGen/AMDGPU/fold-cndmask.mir [new file with mode: 0644]