[SVE][SelectionDAG] Fix dumping of EVTs to use correct API for element count.
authorEli Friedman <efriedma@quicinc.com>
Mon, 30 Mar 2020 23:44:41 +0000 (16:44 -0700)
committerEli Friedman <efriedma@quicinc.com>
Mon, 30 Mar 2020 23:47:53 +0000 (16:47 -0700)
This makes "-debug" output for SVE SelectionDAG readable.

llvm/lib/CodeGen/ValueTypes.cpp

index f93c4b8..eac07be 100644 (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());