AMDGPU/SI: Use new SimplifyDemandedBits helper for multi-use operations
authorTom Stellard <thomas.stellard@amd.com>
Fri, 14 Oct 2016 19:14:29 +0000 (19:14 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 14 Oct 2016 19:14:29 +0000 (19:14 +0000)
commit09c2bd6bd42acb172e847d5088014512e97b37f8
tree4b319e41158bfc149c71e9767fd96c771e07eddb
parentab610079142f420b09a10c3dfded03817bc1250d
AMDGPU/SI: Use new SimplifyDemandedBits helper for multi-use operations

Summary:
We are using this helper for our 24-bit arithmetic combines, so we are now able to eliminate multi-use operations that mask the high-bits of 24-bit inputs (e.g. and x, 0xffffff)

Reviewers: arsenm, nhaehnle

Subscribers: tony-tye, arsenm, kzhuravl, wdng, nhaehnle, llvm-commits, yaxunl

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

llvm-svn: 284267
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/test/CodeGen/AMDGPU/mad_uint24.ll
llvm/test/CodeGen/AMDGPU/mul_int24.ll
llvm/test/CodeGen/AMDGPU/mul_uint24-amdgcn.ll