This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa]: Loop LICM, take 2
On Thu, 2003-08-28 at 10:23, Jason Merrill wrote:
> We do, however, know that pure/const calls do not have observable effects.
>
Right. That's what I was wondering about pure/const calls. If they
can't trap, we should be able to lift them. It's very easy to tell if
the statement has a const/pure function.
In fact, shouldn't it be enough to check TREE_SIDE_EFFECTS (call)?
Diego.