summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-01-15 10:23:18 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-01-15 10:23:18 +0000
commited5eb933840f85fd3db135cc6f8d7a847c7921e4 (patch)
treec41569156aae8f23348ae6bfa6401731484348a7 /llvm/lib/CodeGen
parentbf56ad36cb79c1912bf8bf6725b634652d462dda (diff)
downloadbcm5719-llvm-ed5eb933840f85fd3db135cc6f8d7a847c7921e4.tar.gz
bcm5719-llvm-ed5eb933840f85fd3db135cc6f8d7a847c7921e4.zip
Reverted: Track validity of pass results
Commits r291882 and related r291887. llvm-svn: 292062
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineDominators.cpp2
-rw-r--r--llvm/lib/CodeGen/MachineFunctionPass.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp
index a548480044e..303a6a9263b 100644
--- a/llvm/lib/CodeGen/MachineDominators.cpp
+++ b/llvm/lib/CodeGen/MachineDominators.cpp
@@ -69,7 +69,7 @@ void MachineDominatorTree::releaseMemory() {
}
void MachineDominatorTree::verifyAnalysis() const {
- if (VerifyMachineDomInfo && isExecuted())
+ if (VerifyMachineDomInfo)
verifyDomTree();
}
diff --git a/llvm/lib/CodeGen/MachineFunctionPass.cpp b/llvm/lib/CodeGen/MachineFunctionPass.cpp
index a7ece36a1e5..2265676ff8b 100644
--- a/llvm/lib/CodeGen/MachineFunctionPass.cpp
+++ b/llvm/lib/CodeGen/MachineFunctionPass.cpp
@@ -38,10 +38,8 @@ Pass *MachineFunctionPass::createPrinterPass(raw_ostream &O,
bool MachineFunctionPass::runOnFunction(Function &F) {
// Do not codegen any 'available_externally' functions at all, they have
// definitions outside the translation unit.
- if (F.hasAvailableExternallyLinkage()) {
- setExecuted(false);
+ if (F.hasAvailableExternallyLinkage())
return false;
- }
MachineModuleInfo &MMI = getAnalysis<MachineModuleInfo>();
MachineFunction &MF = MMI.getMachineFunction(F);
OpenPOWER on IntegriCloud