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

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to