https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129114

--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Drea Pinski from comment #1)
> Before forwprop4:
> ```
>   double _18;
>   vector(2) double _16;
> 
>   e.0_1 = e;
>   _16 = [vec_unpack_lo_expr] e.0_1;
>   _18 = BIT_FIELD_REF <j_9(D), 64, 0>;
>   _19 = (long int) _18;
>   _26 = _19 <= 0;
>   _42 = BIT_FIELD_REF <_16, 64, 0>;
>   _44 = _26 ? _42 : 0;
> ```


  vector(4) float e.0_1;
  vector(2) double _16;
  long int _42;

v4sf e;
v2df d = {e[0],e[1]};
long long _42 = ((v2di)d)[0];


Which points to (in optimize_vector_load):
```
          /* Walk through one level of VEC_UNPACK_{LO,HI}_EXPR.  */
          if (def == lhs
              && (use_code == VEC_UNPACK_HI_EXPR
                  || use_code == VEC_UNPACK_LO_EXPR)
              && use_rhs == lhs)
            {
              unpack_use = true;
              worklist.safe_push (gimple_assign_lhs (use_stmt));
              continue;
            }

```

This needs a check for integral types I think.

Reply via email to