Dmitry Petrov
2051355d6a
Optimize constant conditions
...
Using basic constant propagation (only integer constants, no arithmetic
calculations), rewrite conditional jump instructions with constant
arguments.
This covers problem description in KT-17007.
Note that it also works transparently with inline functions.
Partial evaluation is required to cover more "advanced" cases.
As a side effect, this also covers KT-3098:
rewrite IF_ICMP<cmp_op>(x, 0) to IF<cmp0_op>(x).
2017-05-16 17:28:43 +03:00
..
2016-12-27 16:22:12 +03:00
2017-05-16 17:28:43 +03:00
2016-04-29 15:08:54 +03:00
2017-03-13 09:04:31 +03:00
2017-03-13 09:04:31 +03:00
2017-01-13 10:31:07 +03:00
2017-05-16 17:28:43 +03:00
2016-02-17 16:53:19 +03:00
2016-12-05 22:11:33 +03:00
2017-05-05 14:01:50 +03:00
2016-10-17 10:10:46 +03:00
2017-04-28 12:19:09 +02:00
2017-05-04 10:09:42 +03:00
2017-02-08 09:10:22 +01:00
2017-02-28 15:40:04 +01:00
2016-12-09 09:48:46 +01:00
2016-12-27 16:22:12 +03:00
2016-12-05 22:11:33 +03:00
2016-04-01 10:13:22 +03:00
2017-03-13 09:04:31 +03:00
2016-10-13 10:11:32 +03:00
2016-02-01 22:20:30 +03:00
2016-03-09 10:25:38 +03:00
2016-12-05 22:11:33 +03:00
2017-01-24 15:17:47 +01:00
2016-12-05 22:11:33 +03:00
2016-06-02 14:39:51 +03:00
2017-03-10 10:04:30 +01:00
2016-06-02 16:01:03 +03:00
2017-05-05 14:01:50 +03:00
2017-01-25 15:56:56 +01:00
2016-02-01 22:20:30 +03:00
2017-02-07 14:07:06 +03:00
2016-06-02 16:01:03 +03:00
2016-12-05 22:10:14 +03:00
2017-05-04 10:09:42 +03:00
2016-03-04 10:14:21 +03:00
2016-03-02 15:44:28 +03:00
2016-07-26 16:16:36 +03:00
2016-07-26 16:16:36 +03:00
2016-07-26 16:16:36 +03:00
2016-12-05 22:10:14 +03:00
2016-06-02 16:01:05 +03:00
2017-01-13 10:31:07 +03:00
2016-03-02 15:44:28 +03:00
2016-03-02 15:44:28 +03:00
2016-03-02 15:44:28 +03:00