[PATCH] D60831: [DebugInfo at O2][LoopVectorize] pr39024: Vectorized code linenos step through loop even after completion
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 10:02:41 PDT 2019
aprantl added a comment.
> This seems to be a case of having old, incorrect, metadata baked into the test.
> The 'startLoc' (!680) and 'endLoc' (!681) in loop metadta for loop !679 are both
> missing an 'inlinedAt' node.
Thank you very much for the analysis!
There is one thing I don't understand:
It looks like !680 is only used in the !llvm.loop !679 metadata. How can that trigger a `!dbg attachment points at wrong subprogram for function` verifier failure?
https://github.com/llvm/llvm-project/blob/5d00c3060e11b1b8725c0af110f011c4d110d39a/llvm/lib/IR/Verifier.cpp#L2337
IIUC, that check is only performed for !dbg attachments and should skip over !llvm.look attachments. Do loop attachements leak into the !dbg attachments? If yes, we should probably extend the verifier to also check loop attachments in that loop, so this situation can be detected and rejected at import time.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60831/new/
https://reviews.llvm.org/D60831
More information about the llvm-commits
mailing list