This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
It's not better code so much as much less complex code. This is in the case of integer min/max.
On Mar 14, 2004, at 03:07, Dorit Naishlos wrote:
I will also be doing the following soon (after MIN/MAX becomes gimple which has already be discussed and approved):
I seem to have missed the MIN/MAX discussion thread. Do you have a link to
that, or was it off the mailing list? just curious when is it planned to
add the MIN/MAX tree codes to gimple and who is responsible for that?
It was discussed off list (on IRC). Really MIN/MAX is already gimple, just that it gets
lowered when gimplifing happens. Also right now DOM does not understand MIN/MAX.
The current plan is remove the lowering when the tree-ssa gets merged into the mainline.
I think Daniel Berlin said he would be the one to remove the lowering as the linear loop
transformation generates better code with MIN/MAX instead of different basic blocks.
I think he also has a patch to teach DOM about it too but I am not too sure.
if (a < b) c = a; else c = b;
With c = MAX (a, b);
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |