[PATCH] D29578: Propagate debug info for Phi node in SSAUpdater

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 07:06:26 PST 2017


samparker added a comment.

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.


https://reviews.llvm.org/D29578





More information about the llvm-commits mailing list