On 11/14/14 10:33, Jakub Jelinek wrote:
Hi!

When looking at PR59984, I've noticed that in certain cases we leave
around GOMP_SIMD_LANE calls without lhs.
This internal call is intentionally not ECF_CONST, we don't want it moved
before the loop, and the argument is magic.  But, if nothing uses it
anymore, it isn't needed.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?

2014-11-14  Jakub Jelinek  <ja...@redhat.com>

        * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
        IFN_GOMP_SIMD_LANE without lhs as useless.
OK. I presume we don't have other functions with similar characteristics? If we did, then we might want a more general interface or some way to tag them rather than checking for them by name in DCE.

jeff

Reply via email to