Skip to content

Commit

Permalink
Revert "[Debuginfo][LSR] Add salvaging variadic dbg.value intrinsics …
Browse files Browse the repository at this point in the history
…[2/2]"

This reverts commit 3f2b76e.
  • Loading branch information
Chris Jackson committed Apr 28, 2022
1 parent 90dba83 commit cd5f9ef
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 468 deletions.
4 changes: 0 additions & 4 deletions llvm/include/llvm/Analysis/ScalarEvolution.h
Expand Up @@ -545,10 +545,6 @@ class ScalarEvolution {
/// Return true if the SCEV expression contains an undef value.
bool containsUndefs(const SCEV *S) const;

/// Return true if the SCEV expression contains a Value that has been
/// optimised out and is now a nullptr.
bool containsErasedValue(const SCEV *S) const;

/// Return a SCEV expression for the full generality of the specified
/// expression.
const SCEV *getSCEV(Value *V);
Expand Down
9 changes: 0 additions & 9 deletions llvm/lib/Analysis/ScalarEvolution.cpp
Expand Up @@ -12688,15 +12688,6 @@ bool ScalarEvolution::containsUndefs(const SCEV *S) const {
});
}

// Return true when S contains a value that is a nullptr.
bool ScalarEvolution::containsErasedValue(const SCEV *S) const {
return SCEVExprContains(S, [](const SCEV *S) {
if (const auto *SU = dyn_cast<SCEVUnknown>(S))
return SU->getValue() == nullptr;
return false;
});
}

/// Return the size of an element read or written by Inst.
const SCEV *ScalarEvolution::getElementSize(Instruction *Inst) {
Type *Ty;
Expand Down

0 comments on commit cd5f9ef

Please sign in to comment.