[llvm-bugs] [Bug 52578] New: No equivalent for "instcombine-infinite-loop-threshold" in the C API
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 22 04:30:03 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=52578
Bug ID: 52578
Summary: No equivalent for
"instcombine-infinite-loop-threshold" in the C API
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: b2.temp at gmx.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211122/5a0356bb/attachment-0001.html>
More information about the llvm-bugs
mailing list