[SDAG] Clarify behavior of scalable demanded/undef elts in isSplatValue [nfc]
authorPhilip Reames <preames@rivosinc.com>
Tue, 11 Oct 2022 14:26:44 +0000 (07:26 -0700)
committerPhilip Reames <listmail@philipreames.com>
Tue, 11 Oct 2022 14:28:34 +0000 (07:28 -0700)
commitac4f3fff8c85f30782391d4500938ca1ec62d3d9
treecfbbc6f336ff83c9baa6bf72c78de797ebad8c0a
parentbe611ef7faedd5e1f23975598840ccb2018bc100
[SDAG] Clarify behavior of scalable demanded/undef elts in isSplatValue [nfc]

Update comment, and add an assertion to check property expected by sole (non-test) caller.  Remove tests which appear to have been copied from fixed vector tests, and whose demanded bits don't correspond to the way this interface is otherwise used.
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp