OSDN Git Service

[AMDGPU] Combine and x, (sext cc from i1) => select cc, x, 0
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 27 Jun 2017 18:25:26 +0000 (18:25 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 27 Jun 2017 18:25:26 +0000 (18:25 +0000)
commite2d935510ce6e5c7d357d04b34ba7c48925c1a0b
tree686e452d4452b814840d3c112b4a1ac9af1bb85d
parentcfc8374c45877b270a1d9d7bf1ee01edc0785563
[AMDGPU] Combine and x, (sext cc from i1) => select cc, x, 0

Also factored out function to check if a boolean is an already
deserialized value which does not require v_cndmask_b32 to be
loaded. Added binary logical operators to its check.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306439 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp
test/CodeGen/AMDGPU/combine-and-sext-bool.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/combine-cond-add-sub.ll