[ValueTracking] Base computeOverflowForUnsignedMul() on ConstantRange code; NFCI
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 26 May 2019 13:22:01 +0000 (13:22 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 26 May 2019 13:22:01 +0000 (13:22 +0000)
commitd0f13e618faf4a74b1c8c1e87f076f3b04690e74
treed07b679d178fdfbcb3dce456e3d4626e7939ec4f
parent7228b50802c915aa29ad79b1dd3aa580fc63bd26
[ValueTracking] Base computeOverflowForUnsignedMul() on ConstantRange code; NFCI

The implementation in ValueTracking and ConstantRange are equally
powerful, reuse the one in ConstantRange, which will make this easier
to extend.

llvm-svn: 361723
llvm/lib/Analysis/ValueTracking.cpp