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)
commit6fab42aa39945ec80a7803ea98a6befdb420f8be
tree6a1504fe94219bd520c2694982f148217895d781
parent516b02e54870ce1fad494ca097e68443563cc4ec
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...

llvm-svn: 166095
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/basictest.ll