aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlatform.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-09-09 20:56:48 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-09-09 20:56:48 +0000
commit5ab555532b5aaee281bded6341e240d3bc6261df (patch)
tree139bd2be64d8bc51496a188d763fb1477a9a6fbf /lldb/source/Commands/CommandObjectPlatform.cpp
parent122792dc4d05dedbca3d553c8c566897195d3263 (diff)
downloadllvm-5ab555532b5aaee281bded6341e240d3bc6261df.zip
llvm-5ab555532b5aaee281bded6341e240d3bc6261df.tar.gz
llvm-5ab555532b5aaee281bded6341e240d3bc6261df.tar.bz2
[InstCombiner] Expose opportunities to merge subtract and comparison.
Several architectures use the same instruction to perform both a comparison and a subtract. The instruction selection framework does not allow to consider different basic blocks to expose such fusion opportunities. Therefore, these instructions are “merged” by CSE at MI IR level. To increase the likelihood of CSE to apply in such situation, we reorder the operands of the comparison, when they have the same complexity, so that they matches the order of the most frequent subtract. E.g., icmp A, B ... sub B, A <rdar://problem/14514580> llvm-svn: 190352
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
0 files changed, 0 insertions, 0 deletions