Geoff Berry
06c9dc3d9c
[SelectionDAG] Allow sin/cos -> sincos optimization on GNU triples w/ just -fno-math-errno
...
Summary:
This change enables the sin(x) cos(x) -> sincos(x) optimization on GNU
target triples. This optimization was being inhibited when -ffast-math
wasn't set because sincos in GLibC does not set errno, while sin and cos
do. However, this optimization will only run if the attributes on the
sin/cos calls include readnone, which is how clang represents the fact
that it doesn't care about the errno values set by these functions (via
the -fno-math-errno flag).
Reviewers: hfinkel, bogner
Subscribers: mcrosier, javed.absar, llvm-commits, paul.redmond
Differential Revision: https://reviews.llvm.org/D32921
llvm-svn: 305204
2017-06-12 17:15:41 +00:00
..
2016-06-27 15:55:30 +00:00
2016-08-18 21:44:15 +00:00
2016-06-13 14:24:05 +00:00
2016-06-13 14:24:05 +00:00
2017-01-11 19:55:19 +00:00
2016-10-19 16:58:59 +00:00
2016-11-28 13:34:08 +00:00
2016-10-25 15:39:15 +00:00
2016-11-28 13:34:08 +00:00
2016-11-28 13:34:08 +00:00
2016-11-28 13:34:08 +00:00
2016-11-28 13:34:08 +00:00
2017-01-11 19:55:19 +00:00
2017-01-11 19:55:19 +00:00
2017-01-11 19:55:19 +00:00
2017-01-11 19:55:19 +00:00
2017-01-11 19:55:19 +00:00
2017-01-11 19:55:19 +00:00
2016-11-28 13:34:08 +00:00
2016-11-28 13:34:08 +00:00
2017-05-04 13:33:30 +00:00
2017-04-07 12:35:11 +00:00
2017-04-05 13:45:37 +00:00
2017-03-22 06:03:32 +00:00
2017-03-31 13:22:59 +00:00
2017-03-21 05:49:40 +00:00
2017-01-30 17:57:28 +00:00
2016-08-08 18:11:13 +00:00
2017-06-12 17:15:41 +00:00
2016-12-02 18:21:53 +00:00
2016-07-20 00:21:32 +00:00
2016-07-20 00:21:32 +00:00
2016-07-20 00:21:32 +00:00
2016-07-20 00:21:32 +00:00
2017-01-11 19:55:19 +00:00
2017-01-11 19:55:19 +00:00
2017-01-31 23:48:32 +00:00
2017-01-11 19:55:19 +00:00
2016-11-11 12:43:51 +00:00
2016-11-11 12:46:28 +00:00
2017-05-10 13:03:25 +00:00
2017-03-31 14:06:59 +00:00
2016-08-17 13:24:19 +00:00
2016-11-28 13:40:08 +00:00
2017-05-12 06:32:03 +00:00
2017-02-03 11:14:39 +00:00
2017-02-03 19:11:19 +00:00
2016-06-17 20:24:07 +00:00
2016-06-17 20:24:07 +00:00
2016-06-23 21:18:59 +00:00
2017-01-30 18:29:46 +00:00
2017-03-28 14:11:20 +00:00
2017-04-05 15:42:48 +00:00
2017-06-02 23:40:58 +00:00
2016-10-19 16:58:59 +00:00
2016-06-22 16:16:27 +00:00
2016-07-06 18:13:11 +00:00
2016-07-06 18:13:11 +00:00
2016-10-19 16:58:59 +00:00
2016-08-18 18:04:26 +00:00
2016-07-06 18:13:11 +00:00
2017-04-24 12:40:28 +00:00
2017-03-17 06:47:08 +00:00
2017-04-10 20:18:21 +00:00
2016-06-17 20:24:07 +00:00
2016-06-17 20:24:07 +00:00
2016-06-17 20:24:07 +00:00
2017-05-16 19:43:56 +00:00
2016-10-07 22:06:55 +00:00
2016-07-10 14:41:22 +00:00
2016-07-10 14:41:22 +00:00
2016-07-10 14:41:22 +00:00
2016-07-10 14:41:22 +00:00
2016-07-10 14:41:22 +00:00
2017-01-11 19:55:19 +00:00
2016-11-11 12:48:26 +00:00
2016-11-28 13:59:22 +00:00
2016-11-28 13:59:22 +00:00
2016-11-28 13:59:22 +00:00
2017-03-14 00:34:14 +00:00
2017-01-18 11:40:28 +00:00
2016-10-20 08:27:16 +00:00
2017-03-17 07:11:46 +00:00
2017-03-17 07:11:46 +00:00
2016-06-30 07:13:56 +00:00
2016-10-20 08:27:16 +00:00
2016-09-28 06:13:58 +00:00
2017-01-27 07:46:26 +00:00
2017-03-21 10:24:14 +00:00
2017-01-27 07:46:26 +00:00
2017-03-07 09:49:31 +00:00