[ValueTracking] Prevent a call to computeKnownBits if we already know the state of...
authorCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 19:04:45 +0000 (19:04 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 19:04:45 +0000 (19:04 +0000)
commita80f2041f78b025f573ab237186397e8834e1d59
tree987d6319372afbab1c2eec81d4a4b74cf54dffbf
parentdcdb325fee27c1283855cbf47747049f3b7b46bc
[ValueTracking] Prevent a call to computeKnownBits if we already know the state of the bit we would calculate. Also reuse a temporary APInt instead of creating a new one.

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