[PATCH] Reassociate: optimize I1 + x - I2 into x when I1 and I2 are identical

Dmitri Shtilman dshtilman at icloud.com
Wed Sep 24 15:49:07 PDT 2014


Hi all,

The following small patch gives the Reassociate pass a bit more flexibility and autonomy when optimizing expressions.
Particularly, it addresses cases where Reassociate breaks Subtracts but then fails to optimize combinations like I1 + -I2 where I1 and I2 have the same rank and are identical.

Please review.
Dmitri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Reassociate.patch
Type: application/octet-stream
Size: 1678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140924/503bc0b2/attachment.obj>


More information about the llvm-commits mailing list