mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Fix the inliner to be deterministic, not letting its output depend on the
relative location of Function objects in memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14260 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e6d2bb8fa
commit
cf5933a716
@ -1,4 +1,4 @@
|
||||
//===- InlineCommon.cpp - Code common to all inliners ---------------------===//
|
||||
//===- Inliner.cpp - Code common to all inliners --------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@ -90,9 +90,8 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &SCC) {
|
||||
// from inlining other functions.
|
||||
std::vector<CallSite> CallSites;
|
||||
|
||||
for (std::set<Function*>::iterator SCCI = SCCFunctions.begin(),
|
||||
E = SCCFunctions.end(); SCCI != E; ++SCCI)
|
||||
if (Function *F = *SCCI)
|
||||
for (unsigned i = 0, e = SCC.size(); i != e; ++i)
|
||||
if (Function *F = SCC[i]->getFunction())
|
||||
for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
|
||||
for (BasicBlock::iterator I = BB->begin(); I != BB->end(); ++I) {
|
||||
CallSite CS = CallSite::get(I);
|
||||
|
Loading…
Reference in New Issue
Block a user