summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-16 21:02:37 +0000
committerDan Gohman <gohman@apple.com>2010-11-16 21:02:37 +0000
commit8b67c720f2e69b9793efd20b341e84a93c628433 (patch)
tree108ea70817cdf71607930ee52539c57b893b2f94 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parentf89a56c74b3526d965acb1225ec4f482aeb93e6e (diff)
downloadbcm5719-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.cpp3
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)
OpenPOWER on IntegriCloud