[LLVMdev] Simplifying boolean expressions

Misha Brukman brukman at uiuc.edu
Thu May 5 00:25:26 PDT 2005


On Thu, May 05, 2005 at 09:47:50AM +0400, Vladimir Prus wrote:
> > Actually, the -instcombine pass already does this.  Please try it
> > out and let me know if it doesn't do what you want.
> 
> It does work! For some reason, I was assuming that running 'opt'
> without arguments would run some "reasonable" set of optimizations,
> while in reality, it does not run any.

I was afraid you were doing "opt < file.bc > out.bc" but I assumed that
you were actually using some switches with opt. :)  

Yes, without any command-line switches it's a noop.  If you're looking
for the "standard" optimizations, you want to use gccas and/or gccld.

-- 
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu




More information about the llvm-dev mailing list