summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/BinaryStreamRef.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-21 19:02:06 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-21 19:02:06 +0000
commit74177e1ed1a9ae69a72a58790055d887cc71fb36 (patch)
treefd2a042b3d6d202ff1f40de2d2014d850265e99d /llvm/lib/Support/BinaryStreamRef.cpp
parenta8c329b0eba707d57f81da9f63187b8b31ab40f0 (diff)
downloadbcm5719-llvm-74177e1ed1a9ae69a72a58790055d887cc71fb36.tar.gz
bcm5719-llvm-74177e1ed1a9ae69a72a58790055d887cc71fb36.zip
[InstCombine] Teach foldSelectICmpAnd to recognize a (icmp slt X, 0) and (icmp sgt X, -1) as equivalent to an and with the sign bit of the truncated type
This is similar to what was already done in foldSelectICmpAndOr. Ultimately I'd like to see if we can call foldSelectICmpAnd from foldSelectIntoOp if we detect a power of 2 constant. This would allow us to remove foldSelectICmpAndOr entirely. Differential Revision: https://reviews.llvm.org/D36498 llvm-svn: 311362
Diffstat (limited to 'llvm/lib/Support/BinaryStreamRef.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud