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]

Re: [tree-ssa] reaching def. question


On Tue, 2004-03-16 at 17:30, Devang Patel wrote:

>    # BLOCK 1
>    # PRED: 15 [100.0%]  (fallthru) 13 [100.0%]  (fallthru)
>    # A_11 = PHI <A_10(13), A_3(15)>;
>    # i_22 = PHI <i_20(15), 0(13)>;
> <L0>:;
>    T.0_19 = if (1)
>      {
>        A[i_22];
>      }
>    else
>      {
>        A_26
>      };
> 
A_26?  You seem to have a memory problem here.  Are you sure the
operands for COND_EXPR are setup properly?  How did we end up with A
when we had T.0?  Or did you mean T.0_26?  Which is also bad.  If you
want, point me to the patch and I'll take a look.

Side note.  If you give the COND_EXPR a non-void type, it will be
rendered as ?:, which is much more legible.  I would create it with
TREE_TYPE (TREE_OPERAND (stmt, 0)).

Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]