[PATCH, PR70045] Unshare create_empty_if_region_on_edge argument

Tom de Vries Tom_deVries@mentor.com
Fri Mar 11 15:14:00 GMT 2016


Hi,

this patch fixes PR70045, a graphite 6 regression.

The problem is as follows: in graphite_create_new_loop_guard, a 
condition cond_expr is constructed using an upper bound expression *ub.

During the call:
...
     exit_edge = create_empty_if_region_on_edge (entry_edge, cond_expr);
...
the cond_expr is modified in place, which has as side-effect that *ub is 
modified.

The patch fixes this by unsharing the cond_expr before passing it as 
argument to create_empty_if_region_on_edge.

Bootstrapped and reg-tested on x86_64.

OK for stage4 trunk?

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Unshare-create_empty_if_region_on_edge-argument.patch
Type: text/x-patch
Size: 1584 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160311/d6df94d4/attachment.bin>


More information about the Gcc-patches mailing list