[TargetLowering] Don't speculatively call ComputeNumSignBits. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 15 Jan 2021 17:05:34 +0000 (09:05 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 15 Jan 2021 17:09:35 +0000 (09:09 -0800)
commit4c5066b0789d9c38d6362a684346b68261911d29
treeb9956be75f4db02933e513e90cae8aa9fbbfe3a3
parent1e1a011b09d0e6e9ff62b37721906485c386708c
[TargetLowering] Don't speculatively call ComputeNumSignBits. NFC

These methods are recursive so a little costly.

We only look at the result in one place in this function and it's
conditional. We also only need the second call if the first had
enough returned enough sign bits.
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp