[PATCH] D44626: [InstCombine] Fold (A OR B) AND B code sequence over Phi node

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 23 04:55:25 PDT 2018


inouehrs updated this revision to Diff 139578.
inouehrs added a comment.

- Now this optimization creates a new phi node only if the AND instruction can be eliminated not to increase the code size.
- Added test case.


https://reviews.llvm.org/D44626

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44626.139578.patch
Type: text/x-patch
Size: 10329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180323/336f8c8f/attachment.bin>


More information about the llvm-commits mailing list