[PATCH] InstCombine: extract instead of shuffle when performing vector/array type punning

JF Bastien jfb at chromium.org
Wed Feb 18 16:39:01 PST 2015


- s/ShuffleIsExtractingFromLHS/isShuffleExtractingFromLHS/
- Clarify documentation.
- Add tests for bitcasts to types of the same size, and control flow.
- Cache previously generated bitcasts so they only get generated once, and generate them where the old shuffle used to be to ensure they dominate all potential uses.
- Use InstCombine's IRBuilder.


http://reviews.llvm.org/D7734

Files:
  lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  test/Transforms/InstCombine/type_pun.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7734.20235.patch
Type: text/x-patch
Size: 13898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150219/2ba71a67/attachment.bin>


More information about the llvm-commits mailing list