[llvm-commits] [patch] Use the new edge dominance functions in GVN

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Aug 10 09:04:10 PDT 2012


The attached patch depends on my previous one fixing the handling of
multiple edges between two basic blocks.

What this patch does is change GVN to use the new edge dominance
functions so that it is able to reason about an edge dominating a use.
With this patch in, fixing pr13307 becomes an issues of having logic
to decide if is more profitable to replace 'a' with 'b' or 'b' with
'a'.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 11040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120810/d5f26756/attachment.obj>


More information about the llvm-commits mailing list