This is an archive of the discontinued LLVM Phabricator instance.

[LoopUnroll] Don't add metadata to unrolled remainder loop
AbandonedPublic

Authored by samparker on Aug 23 2017, 7:11 AM.

Details

Summary

Debug information was being corrupted when the runtime remainder loop was fully unrolled. But in the case when the remainder loop is going to be fully unrolled, there isn't the need to add loop metadata to it.

Diff Detail

Event Timeline

samparker created this revision.Aug 23 2017, 7:11 AM
aprantl added inline comments.Aug 23 2017, 9:08 AM
test/DebugInfo/unrolled-loop-remainder.ll
6

Can you adda comment explaining what is being checked for in this test?

52

This looks dangerous. Doesn't this match almost every line?

58

Can you strip out all non-essential attributes (i.e. usually everything in quotes)?

Hi Adrian,

Thanks for your feedback. I was always a bit worried that I was treating a symptom and not the cause here. When I remove the target features as you suggested, the issue that I was originally observing failed to happen. I will have to dig a bit deeper.

Thanks,
sam

samparker abandoned this revision.Aug 24 2017, 12:47 AM