Skip to content

Commit 3c3df1b

Browse files
authored
1 parent 8c4e039 commit 3c3df1b

File tree

5 files changed

+2
-44
lines changed

5 files changed

+2
-44
lines changed

llvm/include/llvm/Support/GenericDomTree.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,6 @@ class DominatorTreeBase {
397397
/// may (but is not required to) be null for a forward (backwards)
398398
/// statically unreachable block.
399399
DomTreeNodeBase<NodeT> *getNode(const NodeT *BB) const {
400-
assert((!BB || Parent == NodeTrait::getParent(const_cast<NodeT *>(BB))) &&
401-
"cannot get DomTreeNode of block with different parent");
402400
if (auto Idx = getNodeIndex(BB); Idx && *Idx < DomTreeNodes.size())
403401
return DomTreeNodes[*Idx].get();
404402
return nullptr;

llvm/lib/Analysis/TypeMetadataUtils.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ findCallsAtConstantOffset(SmallVectorImpl<DevirtCallSite> &DevirtCalls,
3333
// after indirect call promotion and inlining, where we may have uses
3434
// of the vtable pointer guarded by a function pointer check, and a fallback
3535
// indirect call.
36-
if (CI->getFunction() != User->getFunction())
37-
continue;
3836
if (!DT.dominates(CI, User))
3937
continue;
4038
if (isa<BitCastInst>(User)) {

llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ bool AlignmentFromAssumptionsPass::processAssumption(CallInst *ACall,
208208
continue;
209209

210210
if (Instruction *K = dyn_cast<Instruction>(J))
211-
if (K->getFunction() == ACall->getFunction())
212211
WorkList.push_back(K);
213212
}
214213

llvm/lib/Transforms/Scalar/LoopFuse.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,9 +1729,7 @@ struct LoopFuser {
17291729
// mergeLatch may remove the only block in FC1.
17301730
SE.forgetLoop(FC1.L);
17311731
SE.forgetLoop(FC0.L);
1732-
// Forget block dispositions as well, so that there are no dangling
1733-
// pointers to erased/free'ed blocks.
1734-
SE.forgetBlockAndLoopDispositions();
1732+
SE.forgetLoopDispositions();
17351733

17361734
// Move instructions from FC0.Latch to FC1.Latch.
17371735
// Note: mergeLatch requires an updated DT.
@@ -2025,9 +2023,7 @@ struct LoopFuser {
20252023
// mergeLatch may remove the only block in FC1.
20262024
SE.forgetLoop(FC1.L);
20272025
SE.forgetLoop(FC0.L);
2028-
// Forget block dispositions as well, so that there are no dangling
2029-
// pointers to erased/free'ed blocks.
2030-
SE.forgetBlockAndLoopDispositions();
2026+
SE.forgetLoopDispositions();
20312027

20322028
// Move instructions from FC0.Latch to FC1.Latch.
20332029
// Note: mergeLatch requires an updated DT.

llvm/test/Transforms/AlignmentFromAssumptions/domtree-crash.ll

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)