Fix the miscompilation of MiBench/consumer-lame that was exposed by Evan's
authorChris Lattner <sabre@nondot.org>
Mon, 14 Jan 2008 02:09:12 +0000 (02:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Jan 2008 02:09:12 +0000 (02:09 +0000)
commit941db495b8233a3753ce72a84021f677073ff4ea
treed4817297cbda4183beee92b4242855fc910b6d45
parent6a93fc01a787ae53095504f882781dbf550b23c6
Fix the miscompilation of MiBench/consumer-lame that was exposed by Evan's
byval work.  This miscompilation is due to the program indexing an array out
of range and us doing a transformation that broke this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45949 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll [new file with mode: 0644]