[llvm-commits] [llvm] r92504 - /llvm/trunk/utils/TableGen/DAGISelEmitter.cpp
Dan Gohman
gohman at apple.com
Mon Jan 4 12:36:57 PST 2010
Author: djg
Date: Mon Jan 4 14:36:57 2010
New Revision: 92504
URL: http://llvm.org/viewvc/llvm-project?rev=92504&view=rev
Log:
Replace some special-case code which probably was buggy with an assertion
verifying that the special case does not occur.
Modified:
llvm/trunk/utils/TableGen/DAGISelEmitter.cpp
Modified: llvm/trunk/utils/TableGen/DAGISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelEmitter.cpp?rev=92504&r1=92503&r2=92504&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelEmitter.cpp Mon Jan 4 14:36:57 2010
@@ -1241,12 +1241,7 @@
;
} else if (InputHasChain && !NodeHasChain) {
// One of the inner node produces a chain.
- if (NodeHasOutFlag) {
- ReplaceFroms.push_back("SDValue(N.getNode(), " +
- utostr(NumPatResults+1) +
- ")");
- ReplaceTos.push_back("SDValue(ResNode, N.getResNo()-1)");
- }
+ assert(!NodeHasOutFlag && "Node has flag but not chain!");
ReplaceFroms.push_back("SDValue(N.getNode(), " +
utostr(NumPatResults) + ")");
ReplaceTos.push_back(ChainName);
More information about the llvm-commits
mailing list