mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Revert r103493, materializing functions in the regular PassManager.
It works in simple cases, but it isn't a general solution. llvm-svn: 103499
This commit is contained in:
parent
7d5e4152c3
commit
1ebf23a692
@ -1444,16 +1444,8 @@ bool FPPassManager::runOnFunction(Function &F) {
|
||||
bool FPPassManager::runOnModule(Module &M) {
|
||||
bool Changed = doInitialization(M);
|
||||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
||||
Function &F = *I;
|
||||
if (F.isMaterializable()) {
|
||||
std::string errstr;
|
||||
if (F.Materialize(&errstr))
|
||||
report_fatal_error("Error reading bitcode file: " + Twine(errstr));
|
||||
}
|
||||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
runOnFunction(*I);
|
||||
}
|
||||
|
||||
return doFinalization(M) || Changed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user