diff options
author | Nikita Popov <npopov@redhat.com> | 2022-09-19 14:44:39 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-09-19 14:46:43 +0200 |
commit | dd61726d5bf30ee603fd2c471401d9b8107958d9 (patch) | |
tree | 4707bdc426f9284a0b1e945b2d626aa69ef0c849 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 4973eee1228674c80f9441a36019c8a83ee3458a (diff) | |
download | llvm-dd61726d5bf30ee603fd2c471401d9b8107958d9.zip llvm-dd61726d5bf30ee603fd2c471401d9b8107958d9.tar.gz llvm-dd61726d5bf30ee603fd2c471401d9b8107958d9.tar.bz2 |
Revert "[SimplifyCFG] accumulate bonus insts cost"
This reverts commit e5581df60a35fffb0c69589777e4e126c849405f.
This causes major compile-time regressions, about 2-3% end-to-end
on CTMark.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index 15f9a96..16085f4 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -480,7 +480,6 @@ static bool simplifyOneLoop(Loop *L, SmallVectorImpl<Loop *> &Worklist, DominatorTree *DT, LoopInfo *LI, ScalarEvolution *SE, AssumptionCache *AC, MemorySSAUpdater *MSSAU, bool PreserveLCSSA) { - SimplifyCFGCostTracker CostTracker; bool Changed = false; if (MSSAU && VerifyMemorySSA) MSSAU->getMemorySSA()->verifyMemorySSA(); @@ -667,7 +666,7 @@ ReprocessLoop: // The block has now been cleared of all instructions except for // a comparison and a conditional branch. SimplifyCFG may be able // to fold it now. - if (!FoldBranchToCommonDest(BI, CostTracker, /*DTU=*/nullptr, MSSAU)) + if (!FoldBranchToCommonDest(BI, /*DTU=*/nullptr, MSSAU)) continue; // Success. The block is now dead, so remove it from the loop, |