This just in, it is a *bad idea* to use 'udiv' on an offset of
authorChandler Carruth <chandlerc@gmail.com>
Wed, 17 Oct 2012 09:23:48 +0000 (09:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 17 Oct 2012 09:23:48 +0000 (09:23 +0000)
commit02bf98ab38355aafbe9a763caa019bc06ad9ce3d
treeb0b88390e248e64fcf0f3ccfe219c62f3779cbdc
parent80668fbc097ad4efbc31a4c9f097a5d787dfac47
This just in, it is a *bad idea* to use 'udiv' on an offset of
a pointer. A very bad idea. Let's not do that. Fixes PR14105.

Note that this wasn't *that* glaring of an oversight. Originally, these
routines were only called on offsets within an alloca, which are
intrinsically positive. But over the evolution of the pass, they ended
up being called for arbitrary offsets, and things went downhill...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166095 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/basictest.ll