diff options
| author | Dan Gohman <gohman@apple.com> | 2010-11-16 21:02:37 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-11-16 21:02:37 +0000 |
| commit | 8b67c720f2e69b9793efd20b341e84a93c628433 (patch) | |
| tree | 108ea70817cdf71607930ee52539c57b893b2f94 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | f89a56c74b3526d965acb1225ec4f482aeb93e6e (diff) | |
| download | bcm5719-llvm-8b67c720f2e69b9793efd20b341e84a93c628433.tar.gz bcm5719-llvm-8b67c720f2e69b9793efd20b341e84a93c628433.zip | |
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.
llvm-svn: 119382
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 3ba1b89a802..d19b319884e 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -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) |

