Propagate debug info through the newly inserted PHI nodes, this was previously attempted in D29578 at the SSA level. As an example of the issue this is fixing:
int main(int a) {
for(int i = 1; i < 10; i++) { func2(i, i+a); }
}
If we currently compile with clang, loop rotation will transform the debug information so that the value 'i' is always set to the constant 1 in the body of the loop.