loop-rotate shouldn't hoist alloca instructions out of a loop. Patch by Patrik Häggl...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 16 Feb 2012 00:41:10 +0000 (00:41 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 16 Feb 2012 00:41:10 +0000 (00:41 +0000)
commit5e6162e75645122b6afdbca8ba55294e073dc369
tree86b6c20e3394435d182f6d7b2ecf12935c5788e4
parent8bcde2aa66415ba2e63b22d2a3c1750bfb25b550
loop-rotate shouldn't hoist alloca instructions out of a loop.  Patch by Patrik Hägglund, with slightly modified test.  Issue reported by Patrik Hägglund on llvmdev.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopRotation.cpp
test/Transforms/LoopRotate/alloca.ll [new file with mode: 0644]