diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-20 16:14:58 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-20 16:14:58 +0000 |
commit | 83dc1c60aa7cccbfc3c187b42f86a75b68df1fa7 (patch) | |
tree | 4c2e2a02aefa6d8bd3a0a53510290e740e234685 /llvm/lib/Support/APInt.cpp | |
parent | 7500b0ece8090d3fa5d881c60d5d37e69142be6b (diff) | |
download | bcm5719-llvm-83dc1c60aa7cccbfc3c187b42f86a75b68df1fa7.tar.gz bcm5719-llvm-83dc1c60aa7cccbfc3c187b42f86a75b68df1fa7.zip |
In SimplifyDemandedUseBits, use computeKnownBits directly to handle Constants
Currently we don't explicitly process ConstantDataSequential, ConstantAggregateZero, or ConstantVector, or Undef before applying the Depth limit. Instead they occur after the depth check in the non-instruction path.
For the constant types that we do handle, the code is replicated from computeKnownBits.
This patch fixes the missing constant handling and the reduces the amount of code by just using computeKnownBits directly for any type of Constant.
Differential Revision: https://reviews.llvm.org/D32123
llvm-svn: 300849
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions