summaryrefslogtreecommitdiff
path: root/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
commit4447d6506cdae78037226ef52c0824a42cf6baa6 (patch)
tree2ef0b924862cc84836a3cb23a279a27280226876 /utils/TableGen/CodeGenDAGPatterns.cpp
parent5662bc959a0544bbaf9c64ab5640cc6fc430cc93 (diff)
downloadllvm-4447d6506cdae78037226ef52c0824a42cf6baa6.tar.gz
llvm-4447d6506cdae78037226ef52c0824a42cf6baa6.tar.bz2
llvm-4447d6506cdae78037226ef52c0824a42cf6baa6.tar.xz
since the VT is fixed for a ImmLeaf, there is no reason to expose it to the matching code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--utils/TableGen/CodeGenDAGPatterns.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp
index 13ac6b15ba..a08cde60fb 100644
--- a/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/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;
}