[LLVMdev] Compiler Driver [high-level comments]

Chris Lattner sabre at nondot.org
Tue Aug 3 18:02:50 PDT 2004


On Tue, 3 Aug 2004, Vikram Adve wrote:
> >> Okay, you answered my question above. Perhaps you can define the
> >> specific passes that should be included n -O0.
> >
> > I would thinking -constprop -simplifycfg -mem2reg -dce, though that's
> > just a first thought :)
>
> Also, -instcombine?

Sure.  When the time comes, we should do some timings to figure out which
passes speed up the compiler.  instcombine could be one of those.

> >>> llvmgcc X.c -On -S # "no" optimization, emit a 'raw' .ll file
> >
> >> That's fine, -On, I suppose is basically "absolutely no optimization
> >> passes"
>
> -On seems misleading to me.  It conveys opt. level "n" .  It could also
> be read as "on" (as opposed to "off").   How about -Onone?  As Chris
> pointed out, this is really meant for compiler developers, not
> end-users, so let's make it different from the standard user's scheme
> and clear to boot.

Great point, I agree.

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://nondot.org/sabre/





More information about the llvm-dev mailing list