diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-17 22:17:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-17 22:17:27 +0000 |
commit | 0d7a5a7daad34fa9de07e5987272e77347aaf502 (patch) | |
tree | 25e5b4374a7055e539d8957135024dd18da85a8f /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | c479e0631fe08b86c3c4c4e8196ee05779a62299 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |