diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-16 06:14:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-16 06:14:22 +0000 |
commit | f400fd6aec27c3d676dc254854f060fc3f16f72b (patch) | |
tree | fc29d772715e5f122a3d297faf0306bde43ed4a9 | |
parent | aa7d3e096b9b0c8af371c7511a67fd8746fcd2e0 (diff) | |
download | bcm5719-llvm-f400fd6aec27c3d676dc254854f060fc3f16f72b.tar.gz bcm5719-llvm-f400fd6aec27c3d676dc254854f060fc3f16f72b.zip |
remove dead code. This is never generated for any targets in mainline.
llvm-svn: 96332
-rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index 243700fdb71..8b7b74c7ad7 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -624,21 +624,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P, } } - // Don't fold any node which reads or writes a flag and has multiple uses. - // FIXME: We really need to separate the concepts of flag and "glue". Those - // real flag results, e.g. X86CMP output, can have multiple uses. - // FIXME: If the optional incoming flag does not exist. Then it is ok to - // fold it. - if (!isRoot && - (N->TreeHasProperty(SDNPInFlag, CGP) || - N->TreeHasProperty(SDNPOptInFlag, CGP) || - N->TreeHasProperty(SDNPOutFlag, CGP))) { - if (!EmittedUseCheck) { - // Multiple uses of actual result? - emitCheck(getValueName(RootName) + ".hasOneUse()"); - } - } - // If there are node predicates for this, emit the calls. for (unsigned i = 0, e = N->getPredicateFns().size(); i != e; ++i) emitCheck(N->getPredicateFns()[i] + "(" + getNodeName(RootName) + ")"); |