[PATCH] [InstCombineCompares] Added shl optimization for the instruction - icmp eq/ne (shl Const2, A), Const1
Ankur Garg
ankur29.garg at samsung.com
Sat Oct 18 01:22:42 PDT 2014
Hi David,
Thanks for the review.
I have made the changes as per your comments.
I have removed all those test cases, which were not being tested with this code. Also, I have removed the code for handling such cases and instead inserted an assertion.
Please review the updated revision.
Thanks.
http://reviews.llvm.org/D5839
Files:
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5839.15113.patch
Type: text/x-patch
Size: 5812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141018/8cd25e60/attachment.bin>
More information about the llvm-commits
mailing list