summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorKyle Butt <kyle+llvm@iteratee.net>2017-02-04 02:26:34 +0000
committerKyle Butt <kyle+llvm@iteratee.net>2017-02-04 02:26:34 +0000
commitc7d67eef5a73d1288bc9e9ce4afde666cf587949 (patch)
treea7648613a034b5d84e97d52485649849f0d44177 /llvm/lib/CodeGen
parente9425c4ff878ddd68c62a76eb47273e64fe711ae (diff)
downloadbcm5719-llvm-c7d67eef5a73d1288bc9e9ce4afde666cf587949.tar.gz
bcm5719-llvm-c7d67eef5a73d1288bc9e9ce4afde666cf587949.zip
[CodeGen]: BlockPlacement: Skip extraneous logging.
Move a check for blocks that are not candidates for tail duplication up before the logging. Reduces logging noise. No non-logging changes intended. llvm-svn: 294086
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 6be20ab6d5a..8a57f009975 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -2215,13 +2215,13 @@ bool MachineBlockPlacement::maybeTailDuplicateBlock(
BlockChain &Chain, BlockFilterSet *BlockFilter,
MachineFunction::iterator &PrevUnplacedBlockIt,
bool &DuplicatedToLPred) {
-
DuplicatedToLPred = false;
+ if (!shouldTailDuplicate(BB))
+ return false;
+
DEBUG(dbgs() << "Redoing tail duplication for Succ#"
<< BB->getNumber() << "\n");
- if (!shouldTailDuplicate(BB))
- return false;
// This has to be a callback because none of it can be done after
// BB is deleted.
bool Removed = false;
OpenPOWER on IntegriCloud