When determining a canonical insert position, don't climb deeper
authorDan Gohman <gohman@apple.com>
Fri, 9 Apr 2010 22:07:05 +0000 (22:07 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 9 Apr 2010 22:07:05 +0000 (22:07 +0000)
commite5f76877aee6f33964de105893f0ef338661ecad
treeeee3ee2d8ccbdc2531e52af53efbc76475b6c23d
parent347fa3fa26592b9792d100f3bf79b0695cf746f0
When determining a canonical insert position, don't climb deeper
into adjacent loops. Also, ensure that the insert position is
dominated by the loop latch of any loop in the post-inc set which
has a latch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100906 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/uglygep.ll