aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-16 06:14:22 +0000
committerChris Lattner <sabre@nondot.org>2010-02-16 06:14:22 +0000
commit6e6975d419d6b1aa35a56576aa3527a8e4dc87ab (patch)
treecd6c76a69ea177dcc038d1697aafb5bae32c8490 /utils
parente39650a805425ffdbd79692c7d1bad80f7332dae (diff)
downloadexternal_llvm-6e6975d419d6b1aa35a56576aa3527a8e4dc87ab.zip
external_llvm-6e6975d419d6b1aa35a56576aa3527a8e4dc87ab.tar.gz
external_llvm-6e6975d419d6b1aa35a56576aa3527a8e4dc87ab.tar.bz2
remove dead code. This is never generated for any targets in mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 243700f..8b7b74c 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/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) + ")");