aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-05-22 16:09:51 +0200
committerNikita Popov <npopov@redhat.com>2023-05-30 12:16:51 +0200
commitf1106ef6c9d14d5b516ec352279aeee8f9d12818 (patch)
treeee672e837c4a2369d8e27492c9dc2ee095b3157c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h
parentc4efcd6970e22e523e9f0088614dbcade05491bc (diff)
downloadllvm-f1106ef6c9d14d5b516ec352279aeee8f9d12818.zip
llvm-f1106ef6c9d14d5b516ec352279aeee8f9d12818.tar.gz
llvm-f1106ef6c9d14d5b516ec352279aeee8f9d12818.tar.bz2
[InstCombine] Remove computeKnownBits() fold for returns
We try to fold constant computeKnownBits() with context for return instructions only. Otherwise, we rely on SimplifyDemandedBits() to fold instructions with constant known bits. The presence of this special fold for returns is dangerous, because it makes our tests lie about what works and what doesn't. Tests are usually written by returning the result we're interested in, but will go through this separate code path that is not used for anything else. This patch removes the special fold. This primarily regresses patterns of the style "assume(x); return x". The responsibility of handling such patterns lies with passes like EarlyCSE/GVN anyway, which will do this reliably, and not just for returns. Differential Revision: https://reviews.llvm.org/D151099
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h')
0 files changed, 0 insertions, 0 deletions