Skip to content

Commit 855752e

Browse files
author
Chris Jackson
committed
Revert [Debuginfo][LSR] Add salvaging variadic dbg.value intrinsics[2/2]
This reverts commit 8f55036.
1 parent 8f55036 commit 855752e

File tree

4 files changed

+88
-464
lines changed

4 files changed

+88
-464
lines changed

llvm/include/llvm/Analysis/ScalarEvolution.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,6 @@ class ScalarEvolution {
545545
/// Return true if the SCEV expression contains an undef value.
546546
bool containsUndefs(const SCEV *S) const;
547547

548-
/// Return true if the SCEV expression contains a Value that has been
549-
/// optimised out and is now a nullptr.
550-
bool containsErasedValue(const SCEV *S) const;
551-
552548
/// Return a SCEV expression for the full generality of the specified
553549
/// expression.
554550
const SCEV *getSCEV(Value *V);

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12688,15 +12688,6 @@ bool ScalarEvolution::containsUndefs(const SCEV *S) const {
1268812688
});
1268912689
}
1269012690

12691-
// Return true when S contains a value that is a nullptr.
12692-
bool ScalarEvolution::containsErasedValue(const SCEV *S) const {
12693-
return SCEVExprContains(S, [](const SCEV *S) {
12694-
if (const auto *SU = dyn_cast<SCEVUnknown>(S))
12695-
return SU->getValue() == nullptr;
12696-
return false;
12697-
});
12698-
}
12699-
1270012691
/// Return the size of an element read or written by Inst.
1270112692
const SCEV *ScalarEvolution::getElementSize(Instruction *Inst) {
1270212693
Type *Ty;

0 commit comments

Comments
 (0)