[PATCH] D26641: [InstCombine] change bitwise logic type to eliminate bitcasts

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 13:32:56 PST 2016


spatel updated this revision to Diff 78932.
spatel added a comment.

Patch updated:

1. Added a check on the destination type to be an integer element type (can't do a bitwise op otherwise).
2. Added a test for that case.
3. Restricted the transform to vector types (FIXME comment in the code) pending a backend fix-up to make sure we're not creating a mess with an illegal logic op for the destination type.


https://reviews.llvm.org/D26641

Files:
  lib/Transforms/InstCombine/InstCombineCasts.cpp
  test/Transforms/InstCombine/bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26641.78932.patch
Type: text/x-patch
Size: 4601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/9d880c26/attachment.bin>


More information about the llvm-commits mailing list