Ping: Inverted masks in WHERE statements
Brooks Moses
bmoses@stanford.edu
Wed Mar 1 22:44:00 GMT 2006
Paul Thomas wrote:
> Roger,
>>Could someone take a look at my latest WHERE optimization patch?
>>http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01735.html
>>It's been a week without comment, which I suspect means that
>>its managed to slipped through the cracks.
>
> 2006-02-20 Roger Sayle <roger@eyesopen.com>
>
> * trans-stmt.c (generate_loop_for_temp_to_lhs): Add an additional
> INVERT argument to invert the sense of the WHEREMASK argument.
> Remove unneeded code to AND together a list of masks.
> (generate_loop_for_rhs_to_temp): Likewise.
> (gfc_trans_assign_need_temp): Likewise.
> (gfc_trans_forall_1): Likewise.
> (gfc_evaluate_where_mask): Likewise, add a new INVERT argument
> to specify the sense of the MASK argument.
> (gfc_trans_where_assign): Likewise.
> (gfc_trans_where_2): Likewise. Restructure code that decides
> whether we need to allocate zero, one or two temporary masks.
> If this is a top-level WHERE (i.e. the incoming MAKS is NULL),
Almost ok -- that should be MASK, not MAKS. :)
- Brooks
More information about the Fortran
mailing list