The C API does not allow to control the threshold value that was added with https://reviews.llvm.org/D71673. For example in pass_manager_builder.h it would be nice to have LLVMPassManagerBuilderSetInstCombineThresh.
Then, the default value for the default set of passes, e.g the set that is initialized when we use LLVMPassManagerBuilderPopulateFunctionPassManager, is not equal to the value used by opt and infinite loops are still possible.
The request here is to have at least a default value that protect against those infinite loops.
The consequence is that compilers that use the C API have to optimize by invoking opt.
The C API does not allow to control the threshold value that was added with https://reviews.llvm.org/D71673. For example in pass_manager_builder.h it would be nice to have
LLVMPassManagerBuilderSetInstCombineThresh
.Then, the default value for the default set of passes, e.g the set that is initialized when we use
LLVMPassManagerBuilderPopulateFunctionPassManager
, is not equal to the value used by opt and infinite loops are still possible.The request here is to have at least a default value that protect against those infinite loops.
The consequence is that compilers that use the C API have to optimize by invoking opt.