summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/frame/main.c
diff options
context:
space:
mode:
authorHongbin Zheng <etherzhhb@gmail.com>2017-09-27 03:11:46 +0000
committerHongbin Zheng <etherzhhb@gmail.com>2017-09-27 03:11:46 +0000
commitd1b7b2efba67fcedcc803b2bf7dda808b9a5c401 (patch)
tree97ce25fd46f47439ddec103a08336485ddfcc350 /lldb/packages/Python/lldbsuite/test/python_api/frame/main.c
parent1d23cb4e7e8dbdff6fd5d8b365b14964254ca243 (diff)
downloadbcm5719-llvm-d1b7b2efba67fcedcc803b2bf7dda808b9a5c401.tar.gz
bcm5719-llvm-d1b7b2efba67fcedcc803b2bf7dda808b9a5c401.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud