Mesa (llvm-context): llvmpipe: remove dead code from merging

Brian Paul brianp at kemper.freedesktop.org
Mon Nov 1 19:55:01 UTC 2010


Module: Mesa
Branch: llvm-context
Commit: 8682a2a0ae0657f98ad0e9286be3280651ccb138
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8682a2a0ae0657f98ad0e9286be3280651ccb138

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Nov  1 13:05:24 2010 -0600

llvmpipe: remove dead code from merging

---

 src/gallium/drivers/llvmpipe/lp_jit.c |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_jit.c b/src/gallium/drivers/llvmpipe/lp_jit.c
index 4711b55..08a19fe 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.c
+++ b/src/gallium/drivers/llvmpipe/lp_jit.c
@@ -180,33 +180,5 @@ lp_jit_get_context_type(struct llvmpipe_context *lp)
    if (!lp->jit_context_ptr_type)
       lp_jit_create_types(lp);
 
-#if 0000
-=======
-   screen->module = lp_build_module;
-   screen->provider = lp_build_provider;
-   screen->engine = lp_build_engine;
-   screen->target = lp_build_target;
-
-   screen->pass = LLVMCreateFunctionPassManager(screen->provider);
-   LLVMAddTargetData(screen->target, screen->pass);
-
-   if ((gallivm_debug & GALLIVM_DEBUG_NO_OPT) == 0) {
-      /* These are the passes currently listed in llvm-c/Transforms/Scalar.h,
-       * but there are more on SVN. */
-      /* TODO: Add more passes */
-      LLVMAddCFGSimplificationPass(screen->pass);
-      LLVMAddPromoteMemoryToRegisterPass(screen->pass);
-      LLVMAddConstantPropagationPass(screen->pass);
-      LLVMAddInstructionCombiningPass(screen->pass);
-      LLVMAddGVNPass(screen->pass);
-   } else {
-      /* We need at least this pass to prevent the backends to fail in
-       * unexpected ways.
-       */
-      LLVMAddPromoteMemoryToRegisterPass(screen->pass);
-   }
-
-#endif
-
    return lp->jit_context_ptr_type;
 }




More information about the mesa-commit mailing list