[LLVMbugs] [Bug 8535] New: opt -O3 silently ignores -inline-threshold setting

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 2 16:01:01 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8535

           Summary: opt -O3 silently ignores -inline-threshold setting
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: opt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: stoklund at 2pi.dk
                CC: llvmbugs at cs.uiuc.edu


The -inline-threshold argument is quite confusing when running opt:

  "opt -O2" / "opt -O3" ignores it silently, and uses fixed values of 200 /
250.

  "opt -std-compile-opts" respects -inline-threshold.

I think that opt -O2 / -O3 should use the same default inlining threshold as
clang/llvm-gcc while still allowing the threshold to be overridden with
-inline-threshold.

Also, clang and llvm-gcc use 225 for -O2 and 275 for -O3 now.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list