summaryrefslogtreecommitdiffstats
path: root/clang/lib
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 /clang/lib
parent122792dc4d05dedbca3d553c8c566897195d3263 (diff)
downloadbcm5719-llvm-5ab555532b5aaee281bded6341e240d3bc6261df.tar.gz
bcm5719-llvm-5ab555532b5aaee281bded6341e240d3bc6261df.zip
[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 'clang/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud