summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2019-03-22 10:45:03 +0000
committerAlex Bradbury <asb@lowrisc.org>2019-03-22 10:45:03 +0000
commitb9e78c39947b44e8b64654f53aeab534cc0cc248 (patch)
treec201a56d5de66113e71892c0ae45791fd93237b2 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
parent336910115867420e3fa33628da8dde56c33a9466 (diff)
downloadbcm5719-llvm-b9e78c39947b44e8b64654f53aeab534cc0cc248.tar.gz
bcm5719-llvm-b9e78c39947b44e8b64654f53aeab534cc0cc248.zip
[RISCV] Optimize emission of SELECT sequences
This patch optimizes the emission of a sequence of SELECTs with the same condition, avoiding the insertion of unnecessary control flow. Such a sequence often occurs when a SELECT of values wider than XLEN is legalized into two SELECTs with legal types. We have identified several use cases where the SELECTs could be interleaved with other instructions. Therefore, we extend the sequence to include non-SELECT instructions if we are able to detect that the non-SELECT instructions do not impact the optimization. This patch supersedes https://reviews.llvm.org/D59096, which attempted to address this issue by introducing a new SelectionDAG node. Hat tip to Eli Friedman for his feedback on how to best handle this issue. Differential Revision: https://reviews.llvm.org/D59355 Patch by Luís Marques. llvm-svn: 356741
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud