Hongbin Zheng
d1b7b2efba
[SimplifyIndVar] Constant fold IV users
...
This patch tries to transform cases like:
for (unsigned i = 0; i < N; i += 2) {
bool c0 = (i & 0x1) == 0;
bool c1 = ((i + 1) & 0x1) == 1;
}
To
for (unsigned i = 0; i < N; i += 2) {
bool c0 = true;
bool c1 = true;
}
This commit also update test/Transforms/IndVarSimplify/replace-srem-by-urem.ll to prevent constant folding.
Differential Revision: https://reviews.llvm.org/D38272
llvm-svn: 314266
2017-09-27 03:11:46 +00:00
..
2017-04-11 19:07:30 +00:00
2017-05-01 17:07:49 +00:00
2017-08-17 16:45:35 +00:00
2017-06-18 03:10:26 +00:00
2017-09-26 21:54:27 +00:00
2017-08-19 06:56:11 +00:00
2017-08-03 09:23:03 +00:00
2017-08-14 21:39:51 +00:00
2017-07-02 00:07:18 +00:00
2017-06-06 11:49:48 +00:00
2017-05-09 19:31:13 +00:00
2017-07-06 18:39:47 +00:00
2017-06-06 11:49:48 +00:00
2017-07-11 22:23:00 +00:00
2017-07-27 15:28:10 +00:00
2017-06-06 11:49:48 +00:00
2017-03-24 17:59:06 +00:00
2017-06-06 11:49:48 +00:00
2017-06-06 11:49:48 +00:00
2017-04-17 14:32:05 +00:00
2017-04-26 21:28:40 +00:00
2017-09-21 19:52:03 +00:00
2017-06-25 22:45:31 +00:00
2017-09-22 01:47:41 +00:00
2017-04-17 09:52:02 +00:00
2017-09-15 15:56:05 +00:00
2017-09-15 00:04:16 +00:00
2016-12-19 17:13:37 +00:00
2017-07-07 02:00:06 +00:00
2017-06-06 11:49:48 +00:00
2017-04-09 20:47:14 +00:00
2017-08-01 05:14:45 +00:00
2017-05-09 19:31:13 +00:00
2017-06-29 17:01:03 +00:00
2017-08-10 17:48:11 +00:00
2017-09-21 19:52:03 +00:00
2017-06-06 11:49:48 +00:00
2017-09-20 22:31:35 +00:00
2017-09-27 03:11:46 +00:00
2017-06-06 11:49:48 +00:00
2017-09-26 02:36:57 +00:00
2017-06-06 11:49:48 +00:00
2017-06-06 11:49:48 +00:00
2017-06-06 11:49:48 +00:00
2017-06-06 11:49:48 +00:00
2017-06-06 11:49:48 +00:00
2017-05-09 19:31:13 +00:00
2017-07-09 07:04:00 +00:00