diff options
author | Florian Hahn <flo@fhahn.com> | 2020-12-30 16:14:40 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-01-01 13:54:41 +0000 |
commit | d9f306aa52fe233a711af2d5baa0d6536f164b10 (patch) | |
tree | da15913e83eab88c7eb9d270674ac3b9bf4a988f /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | da1bd953faafe433a6fa259641973866fc6d934c (diff) | |
download | llvm-d9f306aa52fe233a711af2d5baa0d6536f164b10.zip llvm-d9f306aa52fe233a711af2d5baa0d6536f164b10.tar.gz llvm-d9f306aa52fe233a711af2d5baa0d6536f164b10.tar.bz2 |
[LV] Fix crash when generating remarks with multi-exit loops.
If DoExtraAnalysis is true (e.g. because remarks are enabled), we
continue with the analysis rather than exiting. Update code to
conditionally check if the ExitBB has phis or not a single predecessor.
Otherwise a nullptr is dereferenced with DoExtraAnalysis.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions