[PATCH] D36395: [InstCombine] narrow rotate left/right patterns to eliminate zext/trunc (PR34046)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 06:24:39 PDT 2017


spatel updated this revision to Diff 110374.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated - no functional changes intended from the previous rev, but cleaner:

1. Use isa<VectorType> in the assert and the callers' type check to make it clearer that vectors are allowed.
2. Use m_SpecificInt in pattern matches to reduce code.


https://reviews.llvm.org/D36395

Files:
  lib/Transforms/InstCombine/InstCombineCasts.cpp
  lib/Transforms/InstCombine/InstCombineInternal.h
  test/Transforms/InstCombine/rotate.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36395.110374.patch
Type: text/x-patch
Size: 9621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170809/747787e5/attachment.bin>


More information about the llvm-commits mailing list