summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DAGISelMatcherGen.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-16 22:35:06 +0000
committerChris Lattner <sabre@nondot.org>2010-02-16 22:35:06 +0000
commitafac7dad216d38676ca0e9909d5a4e7588410b64 (patch)
treee6dc46988cd3cba40fa4cd091fe5ace2a59822d2 /llvm/utils/TableGen/DAGISelMatcherGen.cpp
parent0062f7bf599993d5766c70d6cf56476a4e8166b1 (diff)
downloadbcm5719-llvm-afac7dad216d38676ca0e9909d5a4e7588410b64.tar.gz
bcm5719-llvm-afac7dad216d38676ca0e9909d5a4e7588410b64.zip
fix rdar://7653908, a crash on a case where we would fold a load
into a roundss intrinsic, producing a cyclic dag. The root cause of this is badness handling ComplexPattern nodes in the old dagisel that I noticed through inspection. Eliminate a copy of the of the code that handled ComplexPatterns by making EmitChildMatchCode call into EmitMatchCode. llvm-svn: 96408
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcherGen.cpp')
-rw-r--r--llvm/utils/TableGen/DAGISelMatcherGen.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp
index 84e9a3d03dd..d32d3a7b132 100644
--- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp
@@ -212,7 +212,6 @@ void MatcherGen::EmitOperatorMatchCode(const TreePatternNode *N,
//
const TreePatternNode *Root = Pattern.getSrcPattern();
if (N != Root) { // Not the root of the pattern.
-
// If there is a node between the root and this node, then we definitely
// need to emit the check.
bool NeedCheck = !Root->hasChild(N);
OpenPOWER on IntegriCloud