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)
commit3076cc398d663d7b17ef848c58282d794a7f27c6
tree45a51438b74def70b6bf3c264206607cc7c9595d
parent5fd668fcfb53610715a7f3a7ba4e2bee41cdd63b
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

llvm-svn: 281575
llvm/unittests/Analysis/ScalarEvolutionTest.cpp