mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	reorder passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -73,9 +73,6 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
 | 
				
			|||||||
  // FIXME: Implement efficient support for garbage collection intrinsics.
 | 
					  // FIXME: Implement efficient support for garbage collection intrinsics.
 | 
				
			||||||
  PM.add(createLowerGCPass());
 | 
					  PM.add(createLowerGCPass());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Make sure that no unreachable blocks are instruction selected.
 | 
					 | 
				
			||||||
  PM.add(createUnreachableBlockEliminationPass());
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // FIXME: implement the invoke/unwind instructions!
 | 
					  // FIXME: implement the invoke/unwind instructions!
 | 
				
			||||||
  PM.add(createLowerInvokePass());
 | 
					  PM.add(createLowerInvokePass());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -90,9 +87,14 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
 | 
				
			|||||||
    // Replace malloc and free instructions with library calls.
 | 
					    // Replace malloc and free instructions with library calls.
 | 
				
			||||||
    PM.add(createLowerAllocationsPass());
 | 
					    PM.add(createLowerAllocationsPass());
 | 
				
			||||||
    PM.add(createLowerSelectPass());
 | 
					    PM.add(createLowerSelectPass());
 | 
				
			||||||
 | 
					    // Make sure that no unreachable blocks are instruction selected.
 | 
				
			||||||
 | 
					    PM.add(createUnreachableBlockEliminationPass());
 | 
				
			||||||
    PM.add(createSparcV8SimpleInstructionSelector(*this));
 | 
					    PM.add(createSparcV8SimpleInstructionSelector(*this));
 | 
				
			||||||
  } else
 | 
					  } else {
 | 
				
			||||||
 | 
					    // Make sure that no unreachable blocks are instruction selected.
 | 
				
			||||||
 | 
					    PM.add(createUnreachableBlockEliminationPass());
 | 
				
			||||||
    PM.add(createSparcV8ISelDag(*this));
 | 
					    PM.add(createSparcV8ISelDag(*this));
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Print machine instructions as they were initially generated.
 | 
					  // Print machine instructions as they were initially generated.
 | 
				
			||||||
  if (PrintMachineCode)
 | 
					  if (PrintMachineCode)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -73,9 +73,6 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
 | 
				
			|||||||
  // FIXME: Implement efficient support for garbage collection intrinsics.
 | 
					  // FIXME: Implement efficient support for garbage collection intrinsics.
 | 
				
			||||||
  PM.add(createLowerGCPass());
 | 
					  PM.add(createLowerGCPass());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Make sure that no unreachable blocks are instruction selected.
 | 
					 | 
				
			||||||
  PM.add(createUnreachableBlockEliminationPass());
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // FIXME: implement the invoke/unwind instructions!
 | 
					  // FIXME: implement the invoke/unwind instructions!
 | 
				
			||||||
  PM.add(createLowerInvokePass());
 | 
					  PM.add(createLowerInvokePass());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -90,9 +87,14 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
 | 
				
			|||||||
    // Replace malloc and free instructions with library calls.
 | 
					    // Replace malloc and free instructions with library calls.
 | 
				
			||||||
    PM.add(createLowerAllocationsPass());
 | 
					    PM.add(createLowerAllocationsPass());
 | 
				
			||||||
    PM.add(createLowerSelectPass());
 | 
					    PM.add(createLowerSelectPass());
 | 
				
			||||||
 | 
					    // Make sure that no unreachable blocks are instruction selected.
 | 
				
			||||||
 | 
					    PM.add(createUnreachableBlockEliminationPass());
 | 
				
			||||||
    PM.add(createSparcV8SimpleInstructionSelector(*this));
 | 
					    PM.add(createSparcV8SimpleInstructionSelector(*this));
 | 
				
			||||||
  } else
 | 
					  } else {
 | 
				
			||||||
 | 
					    // Make sure that no unreachable blocks are instruction selected.
 | 
				
			||||||
 | 
					    PM.add(createUnreachableBlockEliminationPass());
 | 
				
			||||||
    PM.add(createSparcV8ISelDag(*this));
 | 
					    PM.add(createSparcV8ISelDag(*this));
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Print machine instructions as they were initially generated.
 | 
					  // Print machine instructions as they were initially generated.
 | 
				
			||||||
  if (PrintMachineCode)
 | 
					  if (PrintMachineCode)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user