summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-17 22:17:27 +0000
committerChris Lattner <sabre@nondot.org>2011-04-17 22:17:27 +0000
commit0d7a5a7daad34fa9de07e5987272e77347aaf502 (patch)
tree25e5b4374a7055e539d8957135024dd18da85a8f /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parentc479e0631fe08b86c3c4c4e8196ee05779a62299 (diff)
downloadbcm5719-llvm-0d7a5a7daad34fa9de07e5987272e77347aaf502.tar.gz
bcm5719-llvm-0d7a5a7daad34fa9de07e5987272e77347aaf502.zip
since the VT is fixed for a ImmLeaf, there is no reason to expose it to the matching code.
llvm-svn: 129677
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 13ac6b15ba3..a08cde60fb2 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -657,8 +657,6 @@ std::string TreePredicateFn::getCodeToRunOnSDNode() const {
if (!ImmCode.empty()) {
std::string Result =
" int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();\n";
- if (ImmCode.find("VT") != std::string::npos)
- Result += " MVT VT = Node->getValueType(0).getSimpleVT();\n";
return Result + ImmCode;
}
OpenPOWER on IntegriCloud