[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Jim Laskey
jlaskey at apple.com
Fri Jan 26 15:01:10 PST 2007
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.291 -> 1.292
---
Log message:
Make the constant honest.
---
Diffs of the changes: (+3 -1)
DAGISelEmitter.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.291 llvm/utils/TableGen/DAGISelEmitter.cpp:1.292
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.291 Fri Jan 26 11:29:20 2007
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Fri Jan 26 17:00:54 2007
@@ -3691,9 +3691,11 @@
OS << "SDNode *Select_LABEL(const SDOperand &N) {\n"
<< " SDOperand Chain = N.getOperand(0);\n"
<< " SDOperand N1 = N.getOperand(1);\n"
+ << " unsigned C = cast<ConstantSDNode>(N1)->getValue();\n"
+ << " SDOperand Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n"
<< " AddToISelQueue(Chain);\n"
<< " return CurDAG->getTargetNode(TargetInstrInfo::LABEL,\n"
- << " MVT::Other, N1, Chain);\n"
+ << " MVT::Other, Tmp, Chain);\n"
<< "}\n\n";
OS << "// The main instruction selector code.\n"
More information about the llvm-commits
mailing list