summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-07-01 09:26:01 +0200
committerGitHub <noreply@github.com>2024-07-01 09:26:01 +0200
commit77eb05683082dd3751ccfab963f5160f1852058d (patch)
tree6a89cd8f3c7ef764d97ce50436d78c0a4ebcff45 /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
parent6859e5a169aa235ac04005aaa86ed5ae11372c4c (diff)
[InstCombine] Simplify select using KnownBits of condition (#95923)
Simplify the arms of a select based on the KnownBits implied by its condition. For now this only handles the case where the select arm folds to a constant, but this can be generalized to handle other patterns by using SimplifyDemandedBits instead (in that case we would also have to limit to non-undef conditions). This is implemented by adding a new member to SimplifyQuery that can be used to inject an additional condition. The affected values are pre-computed and we don't call computeKnownBits() if the select arms don't contain affected values. This reduces the cost in some pathological cases.
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions