Remove dead code and comments

This commit is contained in:
gingerBill
2021-03-29 22:45:36 +01:00
parent e1588c9322
commit 6fb0868517
+1 -5
View File
@@ -24,21 +24,19 @@ void lb_populate_function_pass_manager(LLVMPassManagerRef fpm, bool ignore_memcp
return;
}
#if 0
#if 1
LLVMAddSCCPPass(fpm);
LLVMAddPromoteMemoryToRegisterPass(fpm);
LLVMAddUnifyFunctionExitNodesPass(fpm);
LLVMAddCFGSimplificationPass(fpm);
// LLVMAddScalarReplAggregatesPass(fpm);
LLVMAddEarlyCSEPass(fpm);
LLVMAddLowerExpectIntrinsicPass(fpm);
#endif
}
void lb_add_function_simplifcation_passes(LLVMPassManagerRef mpm, i32 optimization_level) {
// LLVMAddScalarReplAggregatesPass(mpm);
LLVMAddEarlyCSEMemSSAPass(mpm);
LLVMAddGVNPass(mpm);
@@ -168,6 +166,4 @@ void lb_populate_module_pass_manager(LLVMTargetMachineRef target_machine, LLVMPa
}
LLVMAddCFGSimplificationPass(mpm);
#if 0
#endif
}