[PATCH] D40594: [InstCombine] miscompile of __builtin_fmod

Sanjay Patel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 07:05:52 PST 2017


spatel added a comment.

Side note: I think there is a different bug here in clang because from what I can tell, we convert the builtin or libcall to 'frem' even when errno could be set by the call. https://reviews.llvm.org/D40044 doesn't address this case because frem is an LLVM instruction rather than an LLVM intrinsic.


https://reviews.llvm.org/D40594





More information about the cfe-commits mailing list