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 | 668ac2fdae69ed358ecf690d6a07428e5a9ee2f7 (patch) | |
tree | 9661cd127b92dbd1c3b4c4091ec46b178f155aac /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 342e39f9e55d3f4465748c9ab84bf27df7a92478 (diff) |
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
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 3ba1b89a80..d19b319884 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/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) |