Make sure SimplifyStoreAtEndOfBlock doesn't mess with loops; the
authorEli Friedman <eli.friedman@gmail.com>
Fri, 13 Jun 2008 21:17:49 +0000 (21:17 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 13 Jun 2008 21:17:49 +0000 (21:17 +0000)
commit66fe80aa57c6de0b48fb4efb4c7bebe35c6c28c8
tree1af6ed860c44c884595e38f3e9cfed29224ad425
parentd4b9c17fb705c2f58ceef4f37d789ddb56783584
Make sure SimplifyStoreAtEndOfBlock doesn't mess with loops; the
structure checks are incorrect if the blocks aren't distinct.
Fixes PR2435.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52257 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-06-13-InfiniteLoopStore.ll [new file with mode: 0644]