[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)

Eric Christopher echristo at gmail.com
Fri Nov 14 17:04:05 PST 2014


>
>
> a) How does this change the pass manager? Some of the command line options
> (many) change which passes are run when. It should be as simple as checking
> the function attribute for each pass to decide when to run, but if one
> invokes a chain then you might have other issues or if the command line
> option invokes module/cgscc passes (see c below).
>
>

Relatedly you might want to look at all of the flags passed via
-backend-args, i.e.  -enable-global-merge=false as a good first step for
things that will need to be handled this way. I.e. some optimization
options could be turned off because of known code problems with those
function (similarly opt levels etc).

Honestly not sure how important this use is though. LTO + different
optimization options for each module/function? Weird. But it's something to
keep in mind I guess.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141115/a09e31b6/attachment.html>


More information about the llvm-dev mailing list