Instead of testing whether an instruction dominates the loop preheader,
authorDan Gohman <gohman@apple.com>
Sun, 27 Sep 2009 15:30:00 +0000 (15:30 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 27 Sep 2009 15:30:00 +0000 (15:30 +0000)
commit00cb67359fc2515eb972cd41fa35f8a0d2b22b87
tree9b35397fbcf607b5f4de6785e772eed710aec769
parent6e70e31810464289a9e9b37e0345847e3ca5d5cf
Instead of testing whether an instruction dominates the loop preheader,
test whether it properly dominates the loop header. This is equivalent
when the loop has a preheader, and has the advantage of working when
the loop doesn't have a preheader. Since IVUsers doesn't Require
LoopSimplify, the loop isn't guaranteed to have a preheader.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82899 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IVUsers.cpp