[LoopUnrollAnalyzer] Handle out of bounds accesses in visitLoad
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 23 Jul 2016 02:56:49 +0000 (02:56 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 23 Jul 2016 02:56:49 +0000 (02:56 +0000)
commit796331c026a6cd33624c0f22e4e289fc89093b43
tree306cc4979f731eecdccdcd3c0dd5cfa047b5712b
parentcec363527e93e89d54daae937532350d41672050
[LoopUnrollAnalyzer] Handle out of bounds accesses in visitLoad

While we handed loads past the end of an array, we didn't handle loads
_before_ the array.

This fixes PR28062.

N.B. While the bug in the code is obvious, I am struggling to craft a
test case which is reasonable in size.

llvm-svn: 276510
llvm/lib/Analysis/LoopUnrollAnalyzer.cpp