[PATCH] D25126: [InstCombine] fold select X, (ext X), C

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 14:02:54 PDT 2016


spatel created this revision.
spatel added reviewers: davidxl, efriedma, majnemer.
spatel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

If we're going to canonicalize IR towards select of constants, try harder to create those.
Also, don't lose the metadata.


https://reviews.llvm.org/D25126

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/select-bitext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25126.73134.patch
Type: text/x-patch
Size: 5492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/fa7baa04/attachment.bin>


More information about the llvm-commits mailing list