summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-02-12 18:12:38 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-02-12 18:12:38 +0000
commit0f0abc7bc2c9f8fd093dad1777de6d6f53199f81 (patch)
treef841ce5bf0e4859341a71475701f8b4b055a061a /llvm/lib/Object/ELFObjectFile.cpp
parent46937ca4e7692dddfdd06f56bb4858ffec0c9279 (diff)
downloadbcm5719-llvm-0f0abc7bc2c9f8fd093dad1777de6d6f53199f81.tar.gz
bcm5719-llvm-0f0abc7bc2c9f8fd093dad1777de6d6f53199f81.zip
[InstCombine] Don't aggressively replace xor with icmp
For some cases, InstCombine replaces the sequence of xor/sub instruction followed by cmp instruction into a single cmp instruction. However, this replacement may result suboptimal result especially when the xor/sub has more than one use, as discussed in bug 26465 (https://llvm.org/bugs/show_bug.cgi?id=26465). This patch make the replacement happen only when xor/sub has only one use. Differential Revision: http://reviews.llvm.org/D16915 Patch by Taewook Oh! llvm-svn: 260695
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud