Re-committing the last bit of change. It shouldn't break PPC this time.
llvm-svn: 25982
This commit is contained in:
		
							parent
							
								
									cbab28414e
								
							
						
					
					
						commit
						7ab4579c68
					
				| 
						 | 
					@ -2137,10 +2137,9 @@ public:
 | 
				
			||||||
          Code += ", Tmp" + utostr(i + ResNo);
 | 
					          Code += ", Tmp" + utostr(i + ResNo);
 | 
				
			||||||
        emitCheck(Code + ")");
 | 
					        emitCheck(Code + ")");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // This breaks ppc
 | 
					        for (unsigned i = 0; i < NumRes; ++i)
 | 
				
			||||||
        //for (unsigned i = 0; i < NumRes; ++i)
 | 
					          emitCode("Tmp" + utostr(i+ResNo) + " = Select(Tmp" +
 | 
				
			||||||
        //  emitCode("Tmp" + utostr(i+ResNo) + " = Select(Tmp" +
 | 
					                   utostr(i+ResNo) + ");");
 | 
				
			||||||
        //           utostr(i+ResNo) + ");");
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        TmpNo = ResNo + NumRes;
 | 
					        TmpNo = ResNo + NumRes;
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
| 
						 | 
					@ -2885,6 +2884,10 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
 | 
				
			||||||
     << "  case ISD::EntryToken:       // These leaves remain the same.\n"
 | 
					     << "  case ISD::EntryToken:       // These leaves remain the same.\n"
 | 
				
			||||||
     << "  case ISD::BasicBlock:\n"
 | 
					     << "  case ISD::BasicBlock:\n"
 | 
				
			||||||
     << "  case ISD::Register:\n"
 | 
					     << "  case ISD::Register:\n"
 | 
				
			||||||
 | 
					     << "  case ISD::TargetConstant:\n"
 | 
				
			||||||
 | 
					     << "  case ISD::TargetConstantPool:\n"
 | 
				
			||||||
 | 
					     << "  case ISD::TargetFrameIndex:\n"
 | 
				
			||||||
 | 
					     << "  case ISD::TargetGlobalAddress:\n"
 | 
				
			||||||
     << "    return N;\n"
 | 
					     << "    return N;\n"
 | 
				
			||||||
     << "  case ISD::AssertSext:\n"
 | 
					     << "  case ISD::AssertSext:\n"
 | 
				
			||||||
     << "  case ISD::AssertZext: {\n"
 | 
					     << "  case ISD::AssertZext: {\n"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue