aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp
diff options
context:
space:
mode:
authorTa-Wei Tu <tu.da.wei@gmail.com>2021-02-19 02:50:21 +0800
committerTa-Wei Tu <tu.da.wei@gmail.com>2021-02-19 02:50:53 +0800
commitf70cdc5b5c7c6086417409ec2d31b66144fabbc9 (patch)
tree88d5eadcd86d5994621f8c9f8d5482781a569c85 /llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp
parenta77e918016043691246d61f045519aaa5bc200f5 (diff)
downloadllvm-f70cdc5b5c7c6086417409ec2d31b66144fabbc9.zip
llvm-f70cdc5b5c7c6086417409ec2d31b66144fabbc9.tar.gz
llvm-f70cdc5b5c7c6086417409ec2d31b66144fabbc9.tar.bz2
[NPM] Properly reset parent loop after loop passes
This fixes https://bugs.llvm.org/show_bug.cgi?id=49185 When `NDEBUG` is not set, `LPMUpdater` checks if the added loops have the same parent loop as the current one in `addSiblingLoops`. If multiple loop passes are executed through `LoopPassManager`, `U.ParentL` will be the same across all passes. However, the parent loop might change after running a loop pass, resulting in assertion failures in subsequent passes. This patch resets `U.ParentL` after running individual loop passes in `LoopPassManager`. Reviewed By: asbirlea, ychen Differential Revision: https://reviews.llvm.org/D96727
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp')
0 files changed, 0 insertions, 0 deletions