Remove check for single use in ShrinkDemandedConstant
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 9 Jan 2019 02:24:22 +0000 (02:24 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 9 Jan 2019 02:24:22 +0000 (02:24 +0000)
commited0d6c60afd8a9007862b3ca0f69dd42cfcfc357
tree3647efd462d2996c9b43c7dad64309ef05ca6740
parentfdef020d8080d2fa5e78c1a549d5a2c616247819
Remove check for single use in ShrinkDemandedConstant

This removes check for single use from general ShrinkDemandedConstant
to the BE because of the AArch64 regression after D56289/rL350475.

After several hours of experiments I did not come up with a testcase
failing on any other targets if check is not performed.

Moreover, direct call to ShrinkDemandedConstant is not really needed
and superceed by SimplifyDemandedBits.

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

llvm-svn: 350684
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp