LSR: fix IVUsers isSimplifiedLoopNest to perform a full domtree walk
authorAndrew Trick <atrick@apple.com>
Tue, 20 Mar 2012 21:24:40 +0000 (21:24 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 20 Mar 2012 21:24:40 +0000 (21:24 +0000)
commitf9492288bbc51e5d34f19ba53dc778bc83be807c
treebdcdde448de01e7c5fc1e53ea7911b0dc549c536
parentaa7b3df1788e6ffdaa9b661cfdccdc41ad181567
LSR: fix IVUsers isSimplifiedLoopNest to perform a full domtree walk
instead of skipping the current loop.

My prior fix was incomplete because of an overzealous compile-time optimization:
Better fix for: <rdar://problem/11049788> Segmentation fault: 11 in LoopStrengthReduce

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153131 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IVUsers.cpp
test/Transforms/LoopStrengthReduce/2012-03-15-nopreheader.ll