gallivm: always enable LLVMAddInstructionCombiningPass()
This commit is contained in:
parent
5479fa34d9
commit
8d364221e9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue