[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Misha Brukman brukman at cs.uiuc.edu
Fri Nov 7 14:33:03 PST 2003


Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.22 -> 1.23

---
Log message:

Remove the *BIG UGLY HACK* from the JIT: PreSelection is now a FunctionPass.


---
Diffs of the changes:  (+0 -15)

Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.22 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.23
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.22	Tue Oct 28 22:24:09 2003
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Fri Nov  7 14:32:08 2003
@@ -97,21 +97,6 @@
 
   setupPassManager();
 
-#ifdef ENABLE_SPARC_JIT
-  // THIS GOES BEYOND UGLY HACKS
-  if (TM.getName() == "UltraSparc-Native") {
-    extern Pass *createPreSelectionPass(TargetMachine &TM);
-    PassManager PM;
-    // Specialize LLVM code for this target machine and then
-    // run basic dataflow optimizations on LLVM code.
-    PM.add(createPreSelectionPass(TM));
-    // We cannot utilize function-at-a-time loading here because PreSelection
-    // is a ModulePass.
-    MP->materializeModule();
-    PM.run(*MP->getModule());
-  }
-#endif
-
   emitGlobals();
 }
 





More information about the llvm-commits mailing list