gallivm: always enable LLVMAddInstructionCombiningPass()
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 25 Oct 2010 17:42:03 +0000 (18:42 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Oct 2010 19:40:34 +0000 (20:40 +0100)
src/gallium/auxiliary/gallivm/lp_bld_init.c

index 5598ca5c489ca856ed08f6bcb5bff4c6914f6925..0b9a6f745fb648365991495275f568c8c34c07e7 100644 (file)
@@ -145,13 +145,7 @@ lp_build_init(void)
          LLVMAddCFGSimplificationPass(lp_build_pass);
          LLVMAddPromoteMemoryToRegisterPass(lp_build_pass);
          LLVMAddConstantPropagationPass(lp_build_pass);
-         if(util_cpu_caps.has_sse4_1) {
-            /* FIXME: There is a bug in this pass, whereby the combination of fptosi
-             * and sitofp (necessary for trunc/floor/ceil/round implementation)
-             * somehow becomes invalid code.
-             */
-            LLVMAddInstructionCombiningPass(lp_build_pass);
-         }
+         LLVMAddInstructionCombiningPass(lp_build_pass);
          LLVMAddGVNPass(lp_build_pass);
       } else {
          /* We need at least this pass to prevent the backends to fail in