[llvm-commits] [llvm] r52729 - /llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
Chris Lattner
sabre at nondot.org
Wed Jun 25 09:54:22 PDT 2008
Author: lattner
Date: Wed Jun 25 11:54:18 2008
New Revision: 52729
URL: http://llvm.org/viewvc/llvm-project?rev=52729&view=rev
Log:
jump threading can introduce allocas, make sure we promote
them back to registers!
Modified:
llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/LTOCodeGenerator.cpp?rev=52729&r1=52728&r2=52729&view=diff
==============================================================================
--- llvm/trunk/tools/lto2/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto2/LTOCodeGenerator.cpp Wed Jun 25 11:54:18 2008
@@ -386,6 +386,8 @@
// 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());
More information about the llvm-commits
mailing list