Re: How to get MIN_EXPR without using deprecated min operator

2005-05-06 Thread Richard Henderson
> The problem with C++ is in fold as we now have to disable the > optimization > which converted "a >= b ? b : a" to MIN_EXPR. Which begs the question of why it doesn't happen when we get into the tree optimizers and have lvalues there. r~

Re: How to get MIN_EXPR without using deprecated min operator

2005-05-06 Thread Andrew Pinski
On May 6, 2005, at 9:27 AM, chris jefferson wrote: Michael Cieslinski wrote: Consider the following short program: #include void Tst1(short* __restrict__ SrcP, short* __restrict__ MinP, int Len) { for (int x=0; x MinP[x] = SrcP[x] } void Tst2(short* __restr

Re: How to get MIN_EXPR without using deprecated min operator

2005-05-06 Thread chris jefferson
Michael Cieslinski wrote: Consider the following short program: #include void Tst1(short* __restrict__ SrcP, short* __restrict__ MinP, int Len) { for (int x=0; x MinP[x] = SrcP[x] } void Tst2(short* __restrict__ SrcP, short* __restrict__ MinP, int Len)

Re: How to get MIN_EXPR without using deprecated min operator

2005-05-06 Thread Gabriel Dos Reis
"Michael Cieslinski" <[EMAIL PROTECTED]> writes: | Consider the following short program: | | #include | | void Tst1(short* __restrict__ SrcP, short* __restrict__ MinP, int Len) | { | for (int x=0; xhttp://gcc.gnu.org/bugzilla/ for missed optimization. -- Gaby

How to get MIN_EXPR without using deprecated min operator

2005-05-06 Thread Michael Cieslinski
Consider the following short program: #include void Tst1(short* __restrict__ SrcP, short* __restrict__ MinP, int Len) { for (int x=0; x