AMDGPU: Guard VOPC instructions against incorrect commute
authorNicolai Haehnle <nhaehnle@gmail.com>
Tue, 19 Apr 2016 21:58:22 +0000 (21:58 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Tue, 19 Apr 2016 21:58:22 +0000 (21:58 +0000)
commite2dda4f7500b135005f0c71b44ac900c3725c892
treebd35e80e29033e7c23c639f08db0273fa3c5a6df
parent7483937bf0e36ef0afd34a3471e76901e0e49796
AMDGPU: Guard VOPC instructions against incorrect commute

Summary:
The added testcase, which triggered this, was derived from a shader-db case
via bugpoint. A separate question is why scalar branching wasn't used.

Reviewers: arsenm, tstellarAMD

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D19208

llvm-svn: 266825
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/bug-vopc-commute.ll [new file with mode: 0644]