[PATCH] D39812: [Driver, CodeGen] pass through and apply -fassociative-math

Sanjay Patel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 8 11:29:39 PST 2017


spatel added a comment.

I just reviewed the gcc docs:
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

"[-fassociative-math] requires that both -fno-signed-zeros and -fno-trapping-math be in effect."

If we want to match that behavior, I need to change this patch to light up 'nsz' and the no-trapping-math function attribute.


https://reviews.llvm.org/D39812





More information about the cfe-commits mailing list