[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 15 16:28:04 PDT 2006
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.242 -> 1.243
---
Log message:
allow Select to return the node being selected if RAU isn't needed.
---
Diffs of the changes: (+1 -1)
DAGISelEmitter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.242 llvm/utils/TableGen/DAGISelEmitter.cpp:1.243
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.242 Fri Aug 11 13:33:41 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Tue Aug 15 18:27:50 2006
@@ -3655,7 +3655,7 @@
OS << " ISelQueue.pop_back();\n";
OS << " if (!isSelected(Node->getNodeId())) {\n";
OS << " SDNode *ResNode = Select(Tmp, SDOperand(Node, 0));\n";
- OS << " if (ResNode) ReplaceUses(Node, ResNode);\n";
+ OS << " if (ResNode && ResNode != Node) ReplaceUses(Node, ResNode);\n";
OS << " }\n";
OS << " }\n";
OS << "\n";
More information about the llvm-commits
mailing list