Revert "Loop unwinding"

This reverts commit a5df22d87eda6c81d68f24067ef8a4374caa1486.