mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Split pseudo-instruction expansion into a separate pass, to make it
easier to debug, and to avoid complications when the CFG changes in the middle of the instruction selection process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -345,6 +345,9 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
||||
// Print the instruction selected machine code...
|
||||
printAndVerify(PM, "After Instruction Selection");
|
||||
|
||||
// Expand pseudo-instructions emitted by isel.
|
||||
PM.add(createExpandPseudosPass());
|
||||
|
||||
// Optimize PHIs before DCE: removing dead PHI cycles may make more
|
||||
// instructions dead.
|
||||
if (OptLevel != CodeGenOpt::None)
|
||||
|
||||
Reference in New Issue
Block a user