[AMDGPU] Preserve inverted bit in SI_IF in presence of SI_KILL
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 4 Aug 2017 06:58:42 +0000 (06:58 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 4 Aug 2017 06:58:42 +0000 (06:58 +0000)
commit6c7a8d0b5f971fde03d98de53adc1db48120523e
tree12a167eb3b299a74cb9ca776f22b541832a64ea8
parent8e72a07efecb55e023b1ba3a3d754d3eb14540be
[AMDGPU] Preserve inverted bit in SI_IF in presence of SI_KILL

In case if SI_KILL is in between of the SI_IF and SI_END_CF we need
to preserve the bits actually flipped by if rather then restoring
the original mask.

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

llvm-svn: 310031
llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
llvm/test/CodeGen/AMDGPU/si-lower-control-flow-kill.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/skip-if-dead.ll