diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-16 06:15:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-16 06:15:00 +0000 |
commit | 812586ad2af16b142cd62283c07213278121d26d (patch) | |
tree | f7550bd99a0dc16386ab8310f40a10b632f5dae7 /llvm/utils/TableGen | |
parent | f400fd6aec27c3d676dc254854f060fc3f16f72b (diff) | |
download | bcm5719-llvm-812586ad2af16b142cd62283c07213278121d26d.tar.gz bcm5719-llvm-812586ad2af16b142cd62283c07213278121d26d.zip |
remove now dead code and fixme.
llvm-svn: 96333
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 2 | ||||
-rw-r--r-- | llvm/utils/TableGen/DAGISelMatcherGen.cpp | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index 8b7b74c7ad7..639c148781a 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -561,7 +561,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P, unsigned OpNo = 0; bool NodeHasChain = N->NodeHasProperty(SDNPHasChain, CGP); bool HasChain = N->TreeHasProperty(SDNPHasChain, CGP); - bool EmittedUseCheck = false; if (HasChain) { if (NodeHasChain) OpNo = 1; @@ -571,7 +570,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P, std::string ParentName(RootName.begin(), RootName.end()-1); emitCheck("IsProfitableToFold(" + getValueName(RootName) + ", " + getNodeName(ParentName) + ", N)"); - EmittedUseCheck = true; if (NodeHasChain) { // If the immediate use can somehow reach this node through another // path, then can't fold it either or it will create a cycle. diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp index 3ed076c7c7e..07ab4729a6b 100644 --- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp +++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp @@ -243,8 +243,6 @@ void MatcherGen::EmitOperatorMatchCode(const TreePatternNode *N, } } - // FIXME: Handle EmittedUseCheck & Flags & .hasOneUse() - for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) { // Get the code suitable for matching this child. Move to the child, check // it then move back to the parent. |