This is an archive of the discontinued LLVM Phabricator instance.

[LV] More verbose debug info for loop location in the source code
ClosedPublic

Authored by zinovy.nis on Apr 4 2014, 6:39 AM.

Details

Summary

Hi.

The patch makes LoopVectorizer print in debug console not only a function name or a module name where analyzing loop was found, but also a line in the source code where the loop resides:

  LV: Checking a loop in "bar" from /some/path/foo.c:42
...
  LV: Found a vectorizable loop (4) in /some/path/foo.c:42
...

It can be useful when debugging loop vectorizer issues.

Diff Detail

Event Timeline

Thanks. Could you please commit it for me?

Committed as r205705.

Thanks!

-eric

zinovy.nis accepted this revision.Apr 15 2014, 3:07 AM
zinovy.nis closed this revision.