[PATCH] D33879: [InstCombine] fold lshr (sext X), C1 --> zext (lshr X, C2)
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 12:23:29 PDT 2017
spatel updated this revision to Diff 101793.
spatel added a comment.
Patch updated:
1. Use shouldChangeType() to guard against adding a shift of an illegal type.
2. Add/modify tests to show that difference.
https://reviews.llvm.org/D33879
Files:
lib/Transforms/InstCombine/InstCombineShifts.cpp
test/Transforms/InstCombine/lshr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33879.101793.patch
Type: text/x-patch
Size: 4156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170607/b9f3267b/attachment.bin>
More information about the llvm-commits
mailing list