[LLVMdev] Simplifying boolean expressions

Reid Spencer reid at x10sys.com
Thu May 5 08:28:51 PDT 2005


On Thu, 2005-05-05 at 02:25 -0500, Misha Brukman wrote:
> 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.
> 
Actually, that's not exactly true. opt always runs the verify pass to
verify that the constructed module is sane. That pass, however, does no
optimization.

Reid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050505/a1b9d32c/attachment-0001.sig>


More information about the llvm-dev mailing list