[PATCH] Added InstCombine transformation for combining two instructions icmp slt/sle/ult/ule/sge/sgt/uge/ugt (ashr/lshr (Const2) %A), (Const1)
Ankur Garg
ankur29.garg at samsung.com
Mon Sep 29 03:55:26 PDT 2014
Hi majnemer, dexonsmith, andreadb, suyog,
Hi,
I have added function to transform the two instructions of the type:
icmp slt/sle/ult/ule/sge/sgt/uge/ugt (ashr/lshr (Const2) %A), (Const1)
The patch for operators eq/ne has already been added in: http://reviews.llvm.org/D4068
This handles it for rest of the operators.
Please help in reviewing it.
Thanks.
Regards,
Ankur Garg
http://reviews.llvm.org/D5518
Files:
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp-shr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5518.14155.patch
Type: text/x-patch
Size: 27180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140929/3804af69/attachment.bin>
More information about the llvm-commits
mailing list