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: unassignedb...@nondot.org
          Reporter: b2.t...@gmx.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to