Use a cheaper test, delaying calling find_leader() until we know that it's necessary...
authorOwen Anderson <resistor@mac.com>
Tue, 10 Jul 2007 00:09:25 +0000 (00:09 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Jul 2007 00:09:25 +0000 (00:09 +0000)
commita05a81b10ae6e2fc4f22a59bdb7c7417cca41cfd
tree052a1d60ba96760fa760fe4e31b434f62099a2e8
parent2038252c6a36efd18cc0bef216fa2c5bb9236617
Use a cheaper test, delaying calling find_leader() until we know that it's necessary.  This improves
the time to optimize Anton's testcase from 21.1s to 17.6s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVNPRE.cpp