diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-02-05 05:22:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-02-05 05:22:18 +0000 |
commit | 2216d8ad2f728885ef8581fd6e76c029e9ae5243 (patch) | |
tree | 5d642c7b51302f58158b608200a17a8b08b8c682 | |
parent | 519ea2abc9f43a374443d112d386cce13a04ecf3 (diff) | |
download | external_llvm-2216d8ad2f728885ef8581fd6e76c029e9ae5243.zip external_llvm-2216d8ad2f728885ef8581fd6e76c029e9ae5243.tar.gz external_llvm-2216d8ad2f728885ef8581fd6e76c029e9ae5243.tar.bz2 |
Re-committing the last bit of change. It shouldn't break PPC this time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25982 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 873b8ad..e0d1905 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -2137,10 +2137,9 @@ public: Code += ", Tmp" + utostr(i + ResNo); emitCheck(Code + ")"); - // This breaks ppc - //for (unsigned i = 0; i < NumRes; ++i) - // emitCode("Tmp" + utostr(i+ResNo) + " = Select(Tmp" + - // utostr(i+ResNo) + ");"); + for (unsigned i = 0; i < NumRes; ++i) + emitCode("Tmp" + utostr(i+ResNo) + " = Select(Tmp" + + utostr(i+ResNo) + ");"); TmpNo = ResNo + NumRes; } else { @@ -2885,6 +2884,10 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { << " case ISD::EntryToken: // These leaves remain the same.\n" << " case ISD::BasicBlock:\n" << " case ISD::Register:\n" + << " case ISD::TargetConstant:\n" + << " case ISD::TargetConstantPool:\n" + << " case ISD::TargetFrameIndex:\n" + << " case ISD::TargetGlobalAddress:\n" << " return N;\n" << " case ISD::AssertSext:\n" << " case ISD::AssertZext: {\n" |