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: Question on cfg_remove_useles_stmts_bb


On Sat, 2004-08-14 at 05:55, Richard Kenner wrote:
> How does this get away with not checking that VAL has been clobbered?
?!?  It certainly checks whether or not the value is clobbered.

      /* Invalidate the var if we encounter something that could modify
it.  */
      if (TREE_CODE (stmt) == ASM_EXPR
          || (TREE_CODE (stmt) == MODIFY_EXPR
              && TREE_OPERAND (stmt, 0) == var))
        return;

Jeff


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