[PATCH] D38037: [InstCombine] Compacting or instructions whose operands are shift instructions

Omer Paparo Bivas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 05:07:24 PDT 2017


opaparo updated this revision to Diff 120051.
opaparo added a comment.

1. Removed the lambda MatchShiftOfAnd as Shift of And is canonicalized to And of Shift, so the lambda MatchAndOfShift is sufficient.
2. The lambda MatchAndOfShift is now not static.
3. Removed unnecessary calls to replaceAllUsesWith.
4. Fixed test documentation.




https://reviews.llvm.org/D38037

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/or-or-shift.ll
  test/Transforms/InstCombine/or-xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38037.120051.patch
Type: text/x-patch
Size: 8824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171024/81212825/attachment.bin>


More information about the llvm-commits mailing list