summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorXin Tong <trent.xin.tong@gmail.com>2017-10-05 23:00:04 +0000
committerXin Tong <trent.xin.tong@gmail.com>2017-10-05 23:00:04 +0000
commit27e66fb5794c10e12f04613b2a76bfedc6f6936e (patch)
treee7ab71bbffaa8648a2eb04e579bbea4c6f928048 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent84d16165d40e1b522e1792cf5a5a4e673980d8d5 (diff)
downloadbcm5719-llvm-27e66fb5794c10e12f04613b2a76bfedc6f6936e.tar.gz
bcm5719-llvm-27e66fb5794c10e12f04613b2a76bfedc6f6936e.zip
[MBP] Remove an invalid assert.
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. llvm-svn: 315032
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 12d8a9a0217..c5991332f08 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -2240,12 +2240,6 @@ void MachineBlockPlacement::buildLoopChains(const MachineLoop &L) {
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
OpenPOWER on IntegriCloud