[SDAG] Address post commit review feedback from f8c63a7f
authorPhilip Reames <preames@rivosinc.com>
Fri, 18 Nov 2022 20:28:22 +0000 (12:28 -0800)
committerPhilip Reames <listmail@philipreames.com>
Fri, 18 Nov 2022 20:30:10 +0000 (12:30 -0800)
commit3fb08d14a63f5f745d3fec2b5f6ffef4cf0a398c
tree1ef7426cb7bc0687bb4ddcbc6eb53e5a58c232d1
parent8dfd883531bf27163aa429daeb9691219875db1c
[SDAG] Address post commit review feedback from f8c63a7f

The major change is falling through to ComputeKnownBits when we don't have an implementation of ComputeNumSignBits due to conservatism over scalable vectors.  Right now, we're mostly conservative in the same cases, but this allows our results to improve when we change ComputeKnownBits without also needing to improve ComputeNumSignBits at the same time.
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp