[PATCH] D37338: [LoopUnroll][DebugInfo] Don't add metadata to unrolled remainder loop
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 08:17:21 PDT 2017
samparker created this revision.
Debug information can be, and was, corrupted when the runtime remainder loop was fully unrolled. This is because the a !null node can be created instead of a unique one describing the loop. In this case, the original node gets incorrectly updated with the NewLoopID metadata.
In the case when the remainder loop is going to be quickly fully unrolled, there isn't the need to add loop metadata for it anyway.
https://reviews.llvm.org/D37338
Files:
lib/Transforms/Utils/LoopUnrollRuntime.cpp
test/DebugInfo/unrolled-loop-remainder.ll
test/Transforms/LoopUnroll/runtime-unroll-remainder.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37338.113410.patch
Type: text/x-patch
Size: 8386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170831/be7c3abe/attachment.bin>
More information about the llvm-commits
mailing list