summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-22 17:51:40 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-03-22 17:51:40 +0000
commit280a6b01c8f6279ba2e7b9a15dfb2c81f5de6088 (patch)
tree06a071818d96c9b6d8400106fcf49e46d10e4d00 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
parent564392d752d2b9b2018e401a17145d604c1cb3cc (diff)
downloadbcm5719-llvm-280a6b01c8f6279ba2e7b9a15dfb2c81f5de6088.tar.gz
bcm5719-llvm-280a6b01c8f6279ba2e7b9a15dfb2c81f5de6088.zip
[ValueTracking] Avoid redundant known bits calculation in computeOverflowForSignedAdd()
We're already computing the known bits of the operands here. If the known bits of the operands can determine the sign bit of the result, we'll already catch this in signedAddMayOverflow(). The only other way (and as the comment already indicates) we'll get new information from computing known bits on the whole add, is if there's an assumption on it. As such, we change the code to only compute known bits from assumptions, instead of computing full known bits on the add (which would unnecessarily recompute the known bits of the operands as well). Differential Revision: https://reviews.llvm.org/D59473 llvm-svn: 356785
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud