am bc265564: am 08dd6d1f: am 56754193: Merge "Fix cycle detection for SGs." into jb-mr1-dev

* commit 'bc265564746f7321e1d8277449a90c9e8e4ad824':
  Fix cycle detection for SGs.