Relax unsafe use check. If there is one unconditional use inside the loop then it...
authorDevang Patel <dpatel@apple.com>
Mon, 1 Oct 2007 18:12:58 +0000 (18:12 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 1 Oct 2007 18:12:58 +0000 (18:12 +0000)
commitbc2265abe1d1b830995bb2f6322409bc7d7c5740
tree5faecbad434a086529a7155f246832e73b824993
parentfef922a4d5c64256394ffb83e40349570b770076
Relax unsafe use check. If there is one unconditional use inside the loop then it is safe to promote value even if there is another conditional use inside the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
test/Transforms/LICM/2007-10-01-PromoteSafeValue.ll [new file with mode: 0644]