1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.ll
authorChris Lattner <sabre@nondot.org>
Thu, 21 Mar 2002 03:04:38 +0000 (03:04 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Mar 2002 03:04:38 +0000 (03:04 +0000)
commit99fb91cc2f8858785d016376fa8556f4b0200a75
tree94bf821af88ecd0b2123609195b473bc52d61011
parentebcd28eb15c2ee48cc4f6db281394aacab08f1d5
1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.ll
2. Allow negative scales in ConvertableToGEP, so that this loop from
   alloc_tree in the Olden health benchmark is correctly raised:

       for (i = 3; i >= 0; i--)
         fval[i] = alloc_tree(level - 1, label*4 + i + 1, new);

   Stepping through the array backwards caused a negative scale.

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