Skip to content

Commit f5b5a30

Browse files
committed
Revert "[CodeGenPrepare][NFC] Update the dominator tree instead of rebuilding it"
This reverts commit 0b1d1cd. It causes a clang crash. Details will be posted to D153638.
1 parent 244fd4d commit f5b5a30

File tree

5 files changed

+162
-229
lines changed

5 files changed

+162
-229
lines changed

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

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

2727
class BasicBlock;
28-
class DomTreeUpdater;
29-
class LoopInfo;
3028
class Value;
3129

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

7572
} // end namespace llvm
7673

0 commit comments

Comments
 (0)