[gomp4] PTX partition discovery cleanup

Nathan Sidwell nathan@acm.org
Fri Sep 11 19:43:00 GMT 2015

This preliminary patch changes PTX's loop discovery to use a recursive DFS walk, 
rather than a worklist.

The significant changes, from the POC  of the next patch I'll be committing are:

1) always insert a 'fork' insn, which keeps the entry to a partitioned region as 
a possible Single-Entry-Single-Exit exit node.

2) don't add the ENTRY bb to the null loop that contains the entire function.

both #1  and #2 help with the SESE optimization I've been  working on.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gomp4-pre.patch
Type: text/x-patch
Size: 7576 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150911/dd9db08e/attachment.bin>

More information about the Gcc-patches mailing list