1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[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 0e6a1c8716
commit e2e7135db3

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());