[PATCH] D72837: [AggressiveInstCombine] Add support for select instructions

Ayman Musa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 04:55:22 PST 2020


aymanmus created this revision.
aymanmus added reviewers: aaboud, delena, spatel, craig.topper.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Add support for select instructions in the sequences that may be optimized in the AggressiveInstCombine pass.
In case the condition of the select operation comes from an ICmp instruction that it's operands are type extended, try to fold the cmp instruction as well.


https://reviews.llvm.org/D72837

Files:
  llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72837.238461.patch
Type: text/x-patch
Size: 4963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/8bf1bd12/attachment.bin>


More information about the llvm-commits mailing list