Copied directly from the IR version.
Most of the testcases I've added for this are somewhat problematic
because they really end up testing the yet to be implemented version
for MUL_I24/MUL_U24.
Differential D66762
DAG: computeNumSignBits for MUL arsenm on Aug 26 2019, 11:10 AM. Authored by
Details
Copied directly from the IR version. Most of the testcases I've added for this are somewhat problematic
Diff Detail Event TimelineComment Actions LG as a copy-paste from lib/Analysis/ValueTracking.cpp ComputeNumSignBitsImpl().
Comment Actions Not sure if we need it for this patch, but I remember that last time I did something with computeNumSignBits in SelectionDAG I was informed that it is possible to add unittests in llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp. In case you for example want to make more detailed tests.
|
Can't we just use the VTBits variable? Also, getValueSizeInBits only works on scalar types.