aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2020-04-22 07:27:26 +0530
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2020-04-22 07:47:30 +0530
commit5a7a6382bc066b93cdd4c60a489b480d0e74a254 (patch)
tree83c8108cf45ce9ef2cb2d25a6b58db60c4606e4d /clang/lib/Frontend/CompilerInvocation.cpp
parentda820f4f5753062501a14ae4336b1c055535e54f (diff)
downloadllvm-5a7a6382bc066b93cdd4c60a489b480d0e74a254.zip
llvm-5a7a6382bc066b93cdd4c60a489b480d0e74a254.tar.gz
llvm-5a7a6382bc066b93cdd4c60a489b480d0e74a254.tar.bz2
FixIrreducible: don't crash when moving a child loop
Summary: When an irreducible SCC is converted into a new natural loop, existing loops included in that SCC now become children of the new loop. The logic that moves these loops from the parent loop to the new loop invoked undefined behaviour when it modified the container that it was iterating over. Fixed this by first extracting all the loops that are to be removed from the parent. Fixes bug 45623. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D78544
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions