]> granicus.if.org Git - llvm/commit
AMDGPU: Fix failure to select branch with optnone
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 10 Oct 2017 20:34:49 +0000 (20:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 10 Oct 2017 20:34:49 +0000 (20:34 +0000)
commit16961e0820c9e2530356105d63d93f59cdcfb0fd
tree7f6f46e71d0a9682f85ebb5666ecad5a9252668a
parentc043e78878a6aba3ff4fd6d884bd2349b6702556
AMDGPU: Fix failure to select branch with optnone

opt-bisect/optnone disable the AMDGPUUniformAnnotateValues pass.
The heuristic in the custom selector for brcond deferred the
branch uniformity check to the pattern, which would fail.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
lib/Target/AMDGPU/SIInstrInfo.td
lib/Target/AMDGPU/SOPInstructions.td
test/CodeGen/AMDGPU/control-flow-optnone.ll [new file with mode: 0644]