Skip to content

Commit

Permalink
Revert "[DebugInfo][LoopStrengthReduction] SCEV-based salvaging for LSR"
Browse files Browse the repository at this point in the history
This was reverted due to a reported crash.
This reverts commit 796b84d.
  • Loading branch information
Chris Jackson committed Jul 28, 2021
1 parent 60e2a50 commit 67d0736
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 947 deletions.
5 changes: 0 additions & 5 deletions llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
Expand Up @@ -83,9 +83,6 @@ class SCEVExpander : public SCEVVisitor<SCEVExpander, Value *> {
/// InsertedValues/InsertedPostIncValues.
SmallPtrSet<Value *, 16> ReusedValues;

// The induction variables generated.
SmallVector<WeakVH, 2> InsertedIVs;

/// A memoization of the "relevant" loop for a given SCEV.
DenseMap<const SCEV *, const Loop *> RelevantLoops;

Expand Down Expand Up @@ -202,11 +199,9 @@ class SCEVExpander : public SCEVVisitor<SCEVExpander, Value *> {
InsertedPostIncValues.clear();
ReusedValues.clear();
ChainedPhis.clear();
InsertedIVs.clear();
}

ScalarEvolution *getSE() { return &SE; }
const SmallVectorImpl<WeakVH> &getInsertedIVs() const { return InsertedIVs; }

/// Return a vector containing all instructions inserted during expansion.
SmallVector<Instruction *, 32> getAllInsertedInstructions() const {
Expand Down

0 comments on commit 67d0736

Please sign in to comment.