[llvm-commits] [llvm-gcc-4.0] r41788 - in /llvm-gcc-4.0/trunk/gcc: llvm-backend.cpp llvm-linker-hack.cpp
Owen Anderson
resistor at mac.com
Sat Sep 8 15:27:10 PDT 2007
Author: resistor
Date: Sat Sep 8 17:27:09 2007
New Revision: 41788
URL: http://llvm.org/viewvc/llvm-project?rev=41788&view=rev
Log:
Use GVN instead of GCSE.
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
llvm-gcc-4.0/trunk/gcc/llvm-linker-hack.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp?rev=41788&r1=41787&r2=41788&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp Sat Sep 8 17:27:09 2007
@@ -345,8 +345,7 @@
if (flag_unroll_loops)
PM->add(createLoopUnrollPass()); // Unroll small loops
PM->add(createInstructionCombiningPass()); // Clean up after the unroller
- PM->add(createLoadValueNumberingPass()); // GVN for load instructions
- PM->add(createGCSEPass()); // Remove common subexprs
+ PM->add(createGVNPass()); // Eliminate redundancies
PM->add(createSCCPPass()); // Constant prop with SCCP
// Run instcombine after redundancy elimination to exploit opportunities
Modified: llvm-gcc-4.0/trunk/gcc/llvm-linker-hack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-linker-hack.cpp?rev=41788&r1=41787&r2=41788&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-linker-hack.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-linker-hack.cpp Sat Sep 8 17:27:09 2007
@@ -54,6 +54,7 @@
llvm::createBFS_DAGScheduler(NULL, NULL, NULL);
llvm::createLinearScanRegisterAllocator();
+ llvm::createGVNPass();
llvm::createGCSEPass();
llvm::createLoopRotatePass();
llvm::createLICMPass();
More information about the llvm-commits
mailing list