diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-03-29 15:28:25 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-03-29 15:28:25 +0000 |
commit | 6a75c36ea9bd2bbc8b58fa8732a843477a5fbd69 (patch) | |
tree | ca6ec5c87f9adcf41bd5c4c1e67b4d7ed1982463 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
parent | 8da6a6cec31f287a98362cbd097394b1e2dead20 (diff) | |
download | bcm5719-llvm-6a75c36ea9bd2bbc8b58fa8732a843477a5fbd69.tar.gz bcm5719-llvm-6a75c36ea9bd2bbc8b58fa8732a843477a5fbd69.zip |
[SLP] Add support for commutative icmp/fcmp predicates
For the cases where the icmp/fcmp predicate is commutative, use reorderInputsAccordingToOpcode to collect and commute the operands.
This requires a helper to recognise commutativity in both general Instruction and CmpInstr types - the CmpInst::isCommutative doesn't overload the Instruction::isCommutative method for reasons I'm not clear on (maybe because its based on predicate not opcode?!?).
Differential Revision: https://reviews.llvm.org/D59992
llvm-svn: 357266
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions