[SROA] Add an off-by-default *strict* inbounds check to SROA. I had SROA
authorChandler Carruth <chandlerc@gmail.com>
Tue, 25 Feb 2014 21:24:45 +0000 (21:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 25 Feb 2014 21:24:45 +0000 (21:24 +0000)
commit495e40121b5d0d460545c92ccb492d8b5e005cb3
tree4ef74ff9c44a4a4040c929862a4ba2b95737bd07
parent15ac7dfb909075e688982cbea4fb34496520f979
[SROA] Add an off-by-default *strict* inbounds check to SROA. I had SROA
implemented this way a long time ago and due to the overwhelming bugs
that surfaced, moved to a much more relaxed variant. Richard Smith would
like to understand the magnitude of this problem and it seems fairly
harmless to keep some flag-controlled logic to get the extremely strict
behavior here. I'll remove it if it doesn't prove useful.

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