[PATCH] D12866: [InstCombine] fold zexts and constants into a phi (PR24766)

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 08:41:13 PDT 2015


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

Patch updated:

1. Add tests to show that existing optimizations are working on cases not handled by this new code.
2. Add test with 2 constants and 2 variables to show that constant shrinking is working in the new code.


http://reviews.llvm.org/D12866

Files:
  lib/Transforms/InstCombine/InstCombineInternal.h
  lib/Transforms/InstCombine/InstCombinePHI.cpp
  test/Transforms/InstCombine/phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12866.35632.patch
Type: text/x-patch
Size: 8029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150924/313f9c69/attachment.bin>


More information about the llvm-commits mailing list