[PM] Rework a loop in the CGSCC update logic to be more conservative and
authorChandler Carruth <chandlerc@gmail.com>
Tue, 20 Dec 2016 03:32:17 +0000 (03:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 20 Dec 2016 03:32:17 +0000 (03:32 +0000)
commit66a9568408c2adea45392a3248fde53d2b64f95e
tree35c6b116ff9cffdb1f209389897a01d7277dced7
parent1d96311447615133f7c807c6b3f7371c7496a982
[PM] Rework a loop in the CGSCC update logic to be more conservative and
clear. The current RefSCC can occur in exactly one position so we should
just enforce that and leverage the property rather than checking for it
anywhere.

This addresses review comments made on another patch.

llvm-svn: 290162
llvm/lib/Analysis/CGSCCPassManager.cpp