diff --git a/llvm/lib/CodeGen/ValueTypes.cpp b/llvm/lib/CodeGen/ValueTypes.cpp index f93c4b87729b6..eac07be08a818 100644 --- a/llvm/lib/CodeGen/ValueTypes.cpp +++ b/llvm/lib/CodeGen/ValueTypes.cpp @@ -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());