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

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 11:21:25 PDT 2015


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

Patch updated based on Sanjoy's feedback:

1. Reorganize code so all interesting logic is in one loop.
2. Remove unnecessary opcode check because we're only dealing with zexts.
3. Fix variable names and comments to match the fact that we're only dealing with zexts.


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.34908.patch
Type: text/x-patch
Size: 5332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150916/c3e1bce7/attachment.bin>


More information about the llvm-commits mailing list