Rectify r213231. Use proper version of 'ComputeNumSignBits'.
authorSuyog Sarda <suyog.sarda@samsung.com>
Thu, 17 Jul 2014 19:07:00 +0000 (19:07 +0000)
committerSuyog Sarda <suyog.sarda@samsung.com>
Thu, 17 Jul 2014 19:07:00 +0000 (19:07 +0000)
commit1a212203bce418f5df59239087811cdacfdb7542
treedb488e330e1945fb01d2d01ff0d196fda138486d
parent3ac7cf3be93afe676c0a2069ab6a506f7833ba00
Rectify r213231. Use proper version of 'ComputeNumSignBits'.

Earlier when the code was in InstCombine, we were calling the version of ComputeNumSignBits in InstCombine.h
that automatically added the DataLayout* before calling into ValueTracking.
When the code moved to InstSimplify, we are calling into ValueTracking directly without passing in the DataLayout*.
This patch rectifies the same by passing DataLayout in ComputeNumSignBits.

llvm-svn: 213295
llvm/lib/Analysis/InstructionSimplify.cpp