[LLVMbugs] [Bug 10673] New: Add a 'disable-pass=<passname>' switch to 'opt'.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 16 06:46:41 PDT 2011


           Summary: Add a 'disable-pass=<passname>' switch to 'opt'.
           Product: new-bugs
           Version: 2.9
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: anders.riggelsen at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Component: 'opt' - LLVM optimizer

A single optimization pass in 'opt' is giving a third party backend I'm using
some problems.
It would be a nice addition to add a command line switch to disable specific
optimizations after they have been added by the convenience optimization
switches like -O1..3, -std-link-opts, -std-compile-opts ect ect...

For example the -scalarrepl pass turns [16 x float] into i512 in some places.
The Javascript backend 'Emscripten' doesn't like this transformation as it
doesn't support that big values.

There is currently no way to disable an optimization pass in an easy way.

Only workaround: (but horrible)
Don't use convenience switches and specify all optimization passes manually -
excluding the ones you don't like.

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