[PATCH] D34029: Infer lowest bits of an integer Multiply when the low bits of the operands are known
Pedro Ferreira via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 02:27:54 PDT 2017
PFerreira updated this revision to Diff 107267.
PFerreira added a comment.
Thanks for the suggestion. This was fun!
I've updated the diff with your improvement suggestion, and changed the expected results of the unit tests to match.
I took the opportunity to refactor the trail-zero computation since this new method can compute the trailing zeros of the result.
https://reviews.llvm.org/D34029
Files:
lib/Analysis/ValueTracking.cpp
unittests/Analysis/ValueTrackingTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34029.107267.patch
Type: text/x-patch
Size: 5177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170719/21c312af/attachment.bin>
More information about the llvm-commits
mailing list