When disabling PRE for a value is directly redundant with itself
authorDan Gohman <dan433584@gmail.com>
Tue, 12 Feb 2013 19:05:10 +0000 (19:05 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 12 Feb 2013 19:05:10 +0000 (19:05 +0000)
commit8c0d29fee988928d2ce439b7a5f772e1cda62060
tree98aefcad5fd9238b12e1a0739f3c9ff105917770
parentb97c14b68f7ebbe6cae673851a6c3f81d639e251
When disabling PRE for a value is directly redundant with itself
(through a loop), don't continue to iterate through the reamining
predecessors.

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