[PATCH] D44102: Teach CorrelatedValuePropagation to reduce the width of udiv/urem instructions.
Justin Lebar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 5 11:58:34 PST 2018
jlebar created this revision.
jlebar added reviewers: spatel, sanjoy.
Herald added a subscriber: hiraditya.
If the operands of a udiv/urem can be proved to fit within a smaller
power-of-two-sized type, reduce the width of the udiv/urem.
https://reviews.llvm.org/D44102
Files:
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
llvm/test/Transforms/CorrelatedValuePropagation/udiv.ll
llvm/test/Transforms/CorrelatedValuePropagation/urem.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44102.137049.patch
Type: text/x-patch
Size: 6356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180305/8b82dc98/attachment.bin>
More information about the llvm-commits
mailing list