OSDN Git Service

Add a C++ unittest to test the fix for PR30213.
authorWei Mi <wmi@google.com>
Thu, 15 Sep 2016 04:06:44 +0000 (04:06 +0000)
committerWei Mi <wmi@google.com>
Thu, 15 Sep 2016 04:06:44 +0000 (04:06 +0000)
commitf09ca2fb88bbe7923accbda384c5479c041458af
tree7c03eb3beaa7c62eb22afaefa72d8a9ebf3db317
parent4574c11309207ef57e99d997d40bfbb80c810e7a
Add a C++ unittest to test the fix for PR30213.

The test exercises the branch in scev expansion when the value in ValueOffsetPair
is a ptr and the offset is not divisible by the elem type size of value.

Differential Revision: https://reviews.llvm.org/D24088

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281575 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Analysis/ScalarEvolutionTest.cpp