[CodeGen] Fix ComputeNumSignBits for scalable vectors
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 3 Jun 2020 14:02:44 +0000 (15:02 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 19 Jun 2020 06:58:42 +0000 (07:58 +0100)
commit9e811b0d932c9e808f1ec4f208591f0dd20ca55f
tree848d90f8b072d07aef04e1761818498a4d09d5af
parent493d8059f3991e35c9d4dd1cb6cbeade426dc0ea
[CodeGen] Fix ComputeNumSignBits for scalable vectors

When trying to calculate the number of sign bits for scalable vectors
we should just bail out for now and pretend we know nothing.

Differential Revision: https://reviews.llvm.org/D81093
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp