On Thu, 7 Sep 2000, Jamie Lokier wrote: >Common Subexpression Elimination. > >If the compiler sees an expression equivalent to one it evaluated >earlier, there is no need to evaluate it a second time. > >So "a = x+x; b = x+x" will evaluate "x+x" just once and store it twice. I didn't know the name of that particular optimization, thanks. >In more complicated cases, where the result of the first read is >actually used before the "asm", the "memory" clobber causes the second >read to occur as well as the first. Indeed. Andrea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: spin_lock forgets to clobb... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and oth... kuznet
- Re: spin_lock forgets to clobber memory and... Andrea Arcangeli
- GCC proposal for "@" asm cons... Jamie Lokier
- Re: GCC proposal for "@"... Andrea Arcangeli
- Re: GCC proposal for "@&q... Linus Torvalds
- Re: GCC proposal for "@&q... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... Jamie Lokier
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber m... Jamie Lokier
- Re: spin_lock forgets to clobb... Andrea Arcangeli
- Re: spin_lock forgets to clobber m... Juan J. Quintela
- Re: spin_lock forgets to clobber memory... kuznet
- Re: spin_lock forgets to clobber m... Richard Henderson
- Re: spin_lock forgets to clobb... Andrea Arcangeli
- Re: spin_lock forgets to clobb... Richard Henderson
- Re: spin_lock forgets to clobb... Andrea Arcangeli
- Re: spin_lock forgets to clobb... kuznet
- Re: spin_lock forgets to clobber m... Jamie Lokier
- Re: [patch] waitqueue optimization, 2.4.0-test7 Richard Henderson
- Re: [patch] waitqueue optimization, 2.4.0-test7 Andrea Arcangeli