mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
jump threading can introduce allocas, make sure we promote
them back to registers! llvm-svn: 52729
This commit is contained in:
parent
20daa88e13
commit
8439b66738
@ -386,6 +386,8 @@ bool LTOCodeGenerator::generateAssemblyCode(std::ostream& out, std::string& errM
|
||||
// Cleanup and simplify the code after the scalar optimizations.
|
||||
passes.add(createInstructionCombiningPass());
|
||||
passes.add(createJumpThreadingPass()); // Thread jumps.
|
||||
passes.add(createPromoteMemoryToRegisterPass()); // Cleanup after threading.
|
||||
|
||||
|
||||
// Delete basic blocks, which optimization passes may have killed...
|
||||
passes.add(createCFGSimplificationPass());
|
||||
|
Loading…
Reference in New Issue
Block a user