[AMDGPU] Use S_BITCMP1_* to replace AND in optimizeCompareInstr
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 1 Sep 2021 18:40:53 +0000 (11:40 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 1 Sep 2021 22:59:12 +0000 (15:59 -0700)
commitf3645c792a65454bb0e9a09236ad13de1e1bbaad
treebadfd3839c8b3200fddffff093fe5f7caa5dc42b
parentbf77b11277411f6725cf09a66feb36d2c14bc8a7
[AMDGPU] Use S_BITCMP1_* to replace AND in optimizeCompareInstr

Differential Revision: https://reviews.llvm.org/D109082
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-fold-binop-select.ll
llvm/test/CodeGen/AMDGPU/cross-block-use-is-not-abi-copy.ll
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.div.fmas.ll
llvm/test/CodeGen/AMDGPU/optimize-compare.mir
llvm/test/CodeGen/AMDGPU/select-i1.ll
llvm/test/CodeGen/AMDGPU/trunc.ll
llvm/test/CodeGen/AMDGPU/wave32.ll