The patch that this assert comes with is fixing a bug in MBP. The assert is
invalid however.
Thanks to @sergey.k.okunev for finding this
Currently this fails SPECCPU2006 LTO. I will add a test case when I do more
investigation and have one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315032
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!RotateLoopWithProfile && LoopTop == L.getHeader())
PreferredLoopExit = findBestLoopExit(L, LoopBlockSet);
- // Make sure PreferredLoopExit actually exits the current loop.
- if (PreferredLoopExit) {
- assert(L.isLoopExiting(PreferredLoopExit) &&
- "not an exiting block of current loop");
- }
-
BlockChain &LoopChain = *BlockToChain[LoopTop];
// FIXME: This is a really lame way of walking the chains in the loop: we