[llvm] cf36f98 - [SVE][SelectionDAG] Fix dumping of EVTs to use correct API for element count.
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 16:48:45 PDT 2020
Author: Eli Friedman
Date: 2020-03-30T16:47:53-07:00
New Revision: cf36f9855a7b8a7e69416b8d20c999a28c73b1b2
URL: https://github.com/llvm/llvm-project/commit/cf36f9855a7b8a7e69416b8d20c999a28c73b1b2
DIFF: https://github.com/llvm/llvm-project/commit/cf36f9855a7b8a7e69416b8d20c999a28c73b1b2.diff
LOG: [SVE][SelectionDAG] Fix dumping of EVTs to use correct API for element count.
This makes "-debug" output for SVE SelectionDAG readable.
Added:
Modified:
llvm/lib/CodeGen/ValueTypes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/ValueTypes.cpp b/llvm/lib/CodeGen/ValueTypes.cpp
index f93c4b87729b..eac07be08a81 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());
More information about the llvm-commits
mailing list