Skip to content

Commit 0b1d1cd

Browse files
[CodeGenPrepare][NFC] Update the dominator tree instead of rebuilding it
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D153638
1 parent b8aba26 commit 0b1d1cd

File tree

5 files changed

+229
-162
lines changed

5 files changed

+229
-162
lines changed

llvm/include/llvm/Transforms/Utils/BypassSlowDivision.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
namespace llvm {
2626

2727
class BasicBlock;
28+
class DomTreeUpdater;
29+
class LoopInfo;
2830
class Value;
2931

3032
struct DivRemMapKey {
@@ -66,8 +68,9 @@ template <> struct DenseMapInfo<DivRemMapKey> {
6668
///
6769
/// This optimization may add basic blocks immediately after BB; for obvious
6870
/// reasons, you shouldn't pass those blocks to bypassSlowDivision.
69-
bool bypassSlowDivision(
70-
BasicBlock *BB, const DenseMap<unsigned int, unsigned int> &BypassWidth);
71+
bool bypassSlowDivision(BasicBlock *BB,
72+
const DenseMap<unsigned int, unsigned int> &BypassWidth,
73+
DomTreeUpdater *DTU = nullptr, LoopInfo *LI = nullptr);
7174

7275
} // end namespace llvm
7376

0 commit comments

Comments
 (0)