[llvm-commits] [PATCH] Make EarlyCSE understand commutativity

Michael Ilseman milseman at apple.com
Fri Sep 21 16:49:15 PDT 2012


The attached patch and tests alter EarlyCSE to also check for commuted values. This allows EarlyCSE to replace:

t1 = fadd a, b
t2 = fadd b, a

with:
t1 = fadd a, b



More information about the llvm-commits mailing list