[llvm] r276510 - [LoopUnrollAnalyzer] Handle out of bounds accesses in visitLoad

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 13:43:30 PDT 2016


The PR reproduces on 3.9 as well. Should we merge this?

On Fri, Jul 22, 2016 at 7:56 PM, David Majnemer via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: majnemer
> Date: Fri Jul 22 21:56:49 2016
> New Revision: 276510
>
> URL: http://llvm.org/viewvc/llvm-project?rev=276510&view=rev
> Log:
> [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.
>
> Modified:
>     llvm/trunk/lib/Analysis/LoopUnrollAnalyzer.cpp


More information about the llvm-commits mailing list