summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-03-24 16:56:51 +0000
committerCraig Topper <craig.topper@gmail.com>2017-03-24 16:56:51 +0000
commitd4521c2fc23b207cca9d45edd2b3a54bdc466193 (patch)
tree39d8f405d6cbcf8dc59dd4d3cc6dba0eb2c2710b /clang/lib/Index/IndexingContext.cpp
parentf7d1023a730abeeb0aafba939306413ff2935c0e (diff)
downloadbcm5719-llvm-d4521c2fc23b207cca9d45edd2b3a54bdc466193.tar.gz
bcm5719-llvm-d4521c2fc23b207cca9d45edd2b3a54bdc466193.zip
[InstCombine] Provide a way to calculate KnownZero/One for Add/Sub in SimplifyDemandedUseBits without recursing into ComputeKnownBits
SimplifyDemandedUseBits for Add/Sub already recursed down LHS and RHS for simplifying bits. If that didn't provide any simplifications we fall back to calling computeKnownBits which will recurse again. Instead just take the known bits for LHS and RHS we already have and call into a new function in ValueTracking that can calculate the known bits given the LHS/RHS bits. llvm-svn: 298711
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud