[PATCH] D36498: [InstCombine] Teach foldSelectICmpAnd to recognize a (icmp slt trunc X, 0) and (icmp sgt trunc X, -1) as equivalent to an and with the sign bit of the truncated type
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 12:03:19 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL311362: [InstCombine] Teach foldSelectICmpAnd to recognize a (icmp slt X, 0) and (icmp… (authored by ctopper).
Changed prior to commit:
https://reviews.llvm.org/D36498?vs=111996&id=112027#toc
Repository:
rL LLVM
https://reviews.llvm.org/D36498
Files:
llvm/trunk/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/trunk/test/Transforms/InstCombine/select-with-bitwise-ops.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36498.112027.patch
Type: text/x-patch
Size: 8700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170821/b08e6598/attachment.bin>
More information about the llvm-commits
mailing list