diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-02-12 18:12:38 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-12 18:12:38 +0000 |
| commit | 0f0abc7bc2c9f8fd093dad1777de6d6f53199f81 (patch) | |
| tree | f841ce5bf0e4859341a71475701f8b4b055a061a /llvm/lib/CodeGen/FaultMaps.cpp | |
| parent | 46937ca4e7692dddfdd06f56bb4858ffec0c9279 (diff) | |
| download | bcm5719-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/CodeGen/FaultMaps.cpp')
0 files changed, 0 insertions, 0 deletions

