Similar to rL335904.
When creating phi instructions to resume at the scalar part of the loop,
copy the DebugLoc from the original phi over to the new one.
Based on Greg's report:
https://bugs.llvm.org/show_bug.cgi?id=37955
Differential D48769
[DebugInfo][LoopVectorize] Preserve DL in generated phi instruction gramanas on Jun 29 2018, 5:37 AM. Authored by
Details Similar to rL335904. When creating phi instructions to resume at the scalar part of the loop, Based on Greg's report:
Diff Detail
Event Timeline
Comment Actions
Since this particular fix is about the phi that resumes the scalar part of the loop, I don't think it would be appropriate to create a new reduced test just for this. Comment Actions It'd be a good idea rename the test so that readers know what to expect if it fails (say, 'preserve-dbg-loc-and-loop-metadata.ll'). Otherwise, LGTM, thanks! |