[llvm-commits] [llvm-gcc-4.2] r56223 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-linker-hack.cpp
Duncan Sands
baldrick at free.fr
Mon Sep 15 11:57:31 PDT 2008
Author: baldrick
Date: Mon Sep 15 13:57:29 2008
New Revision: 56223
URL: http://llvm.org/viewvc/llvm-project?rev=56223&view=rev
Log:
End of the GlobalsModRef experiment.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=56223&r1=56222&r2=56223&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Sep 15 13:57:29 2008
@@ -30,7 +30,6 @@
#include "llvm/PassManager.h"
#include "llvm/ValueSymbolTable.h"
#include "llvm/Analysis/LoopPass.h"
-#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Assembly/PrintModulePass.h"
@@ -430,10 +429,6 @@
if (flag_unroll_loops)
PM->add(createLoopUnrollPass()); // Unroll small loops
PM->add(createInstructionCombiningPass()); // Clean up after the unroller
- if (flag_unit_at_a_time) {
- PM->add(createGlobalsModRefPass()); // Alias analysis of globals
- PM->add(createMarkModRefPass()); // Mark functions readonly/readnone
- }
PM->add(createGVNPass()); // Remove redundancies
PM->add(createMemCpyOptPass()); // Remove memcpy / form memset
PM->add(createSCCPPass()); // Constant prop with SCCP
Modified: llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp?rev=56223&r1=56222&r2=56223&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp Mon Sep 15 13:57:29 2008
@@ -22,7 +22,6 @@
#include "llvm/Module.h"
#include "llvm/ModuleProvider.h"
-#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Transforms/Scalar.h"
@@ -86,8 +85,6 @@
llvm::createMemCpyOptPass();
llvm::createDeadTypeEliminationPass();
llvm::createLoopDeletionPass();
- llvm::createGlobalsModRefPass();
- llvm::createMarkModRefPass();
std::string Err;
llvm::TargetMachineRegistry::getClosestStaticTargetForModule(*MP->getModule(),
More information about the llvm-commits
mailing list