projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8fc192
)
[SVE][SelectionDAG] Fix dumping of EVTs to use correct API for element count.
author
Eli Friedman
<efriedma@quicinc.com>
Mon, 30 Mar 2020 23:44:41 +0000
(16:44 -0700)
committer
Eli 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
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/ValueTypes.cpp
b/llvm/lib/CodeGen/ValueTypes.cpp
index
f93c4b8
..
eac07be
100644
(file)
--- 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());