This does not require -ffast-math, and it gives CSE/GVN more options to
eliminate duplicate expressions in, e.g.:
return ((x + 0.1234 * y) * (x - 0.1234 * y));
Paths
| Differential D4904
Reassociate x + -0.1234 * y into x - 0.1234 * y ClosedPublic Authored by erikjv on Aug 14 2014, 4:36 AM.
Details Summary This does not require -ffast-math, and it gives CSE/GVN more options to return ((x + 0.1234 * y) * (x - 0.1234 * y));
Diff Detail
Event Timelineerikjv updated this object. Comment Actions Hi Erik, Upload the revised patch and I'll review and approve. Regards, Chad
Comment Actions Hi Chad, I merged in your patch. I also got rid of the "only do it for mcrosier edited edge metadata. Comment ActionsLGTM. Let me know if you need me to push the commit. Chad
This revision is now accepted and ready to land.Aug 19 2014, 8:40 AM
Revision Contents
Diff 12755 llvm/trunk/lib/Target/README.txt
llvm/trunk/lib/Transforms/Scalar/Reassociate.cpp
llvm/trunk/test/Transforms/Reassociate/fast-basictest.ll
llvm/trunk/test/Transforms/Reassociate/liftsign.ll
|