mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
PM: Fix an inverted condition in simplifyFunctionCFG
I mentioned the issue here in code review way back in September and was sure we'd fixed it, but apparently we forgot: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20150921/301850.html In any case, as soon as you try to use this pass in anything but the most basic pipeline everything falls apart. Fix the condition. llvm-svn: 257935
This commit is contained in:
parent
4bd6c689ba
commit
abeea25896
@ -182,7 +182,7 @@ PreservedAnalyses SimplifyCFGPass::run(Function &F,
|
||||
auto &TTI = AM->getResult<TargetIRAnalysis>(F);
|
||||
auto &AC = AM->getResult<AssumptionAnalysis>(F);
|
||||
|
||||
if (!simplifyFunctionCFG(F, TTI, &AC, BonusInstThreshold))
|
||||
if (simplifyFunctionCFG(F, TTI, &AC, BonusInstThreshold))
|
||||
return PreservedAnalyses::none();
|
||||
|
||||
return PreservedAnalyses::all();
|
||||
@ -236,4 +236,3 @@ llvm::createCFGSimplificationPass(int Threshold,
|
||||
std::function<bool(const Function &)> Ftor) {
|
||||
return new CFGSimplifyPass(Threshold, Ftor);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user