IMP compiler loops in pass3

Under unknown circumstances PASS3 of the compiler loops. This is being urgently investigated