This is the mail archive of the gcc-patches@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]

Re: RFA: non-const libcalls


On Sat, May 12, 2001 at 03:21:56PM -0300, Alexandre Oliva wrote:
> I'm pretty sure there was no problem in case the stores came before
> a regular call because this thing operated only within basic blocks,

No.  There was no problem on regular calls because they are 
assumed to read and write all memory.  From propagate_one_insn,

          /* Non-constant calls clobber memory.  */
          if (! CONST_CALL_P (insn))
            {
              free_EXPR_LIST_list (&pbi->mem_set_list);
              pbi->mem_set_list_len = 0;
            }

> Could you point me at the pass or chunk of code that does that,
> to refresh my memory?

The tracking is done in mark_set_1 and mark_used_regs.  The
killing is done in insn_dead_p.

> Ok to remove the original paragraph, then?

Yes.



r~


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