[SVE][SelectionDAG] Fix dumping of EVTs to use correct API for element count.

This makes "-debug" output for SVE SelectionDAG readable.
This commit is contained in:
Eli Friedman 2020-03-30 16:44:41 -07:00
parent b8fc192d42
commit cf36f9855a
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ std::string EVT::getEVTString() const {
switch (V.SimpleTy) {
default:
if (isVector())
return (isScalableVector() ? "nxv" : "v") + utostr(getVectorNumElements())
return (isScalableVector() ? "nxv" : "v")
+ utostr(getVectorElementCount().Min)
+ getVectorElementType().getEVTString();
if (isInteger())
return "i" + utostr(getSizeInBits());