diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-03-15 12:00:22 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-03-15 12:00:59 +0300 |
commit | f247d2ab9a427434c39b2be0aeac6b84b367b7bf (patch) | |
tree | 8bc507e20473606f64788a348ddba89af0a2a4c8 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 2a71f95767490f5ac65d42bf55ad571e6fbd1123 (diff) | |
download | llvm-f247d2ab9a427434c39b2be0aeac6b84b367b7bf.zip llvm-f247d2ab9a427434c39b2be0aeac6b84b367b7bf.tar.gz llvm-f247d2ab9a427434c39b2be0aeac6b84b367b7bf.tar.bz2 |
Revert "[NFCI][ValueTracking] getUnderlyingObject(): assert that no cycles are encountered"
This reverts commit 36f1c3db66f7268ea3183bcf0bbf05b3e1c570b4.
Seems to make bots unhappy.
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 8c44d73..79399cf 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -4165,11 +4165,7 @@ static bool isSameUnderlyingObjectInLoop(const PHINode *PN, const Value *llvm::getUnderlyingObject(const Value *V, unsigned MaxLookup) { if (!V->getType()->isPointerTy()) return V; -#ifndef NDEBUG - SmallPtrSet<const Value *, 8> Visited; -#endif for (unsigned Count = 0; MaxLookup == 0 || Count < MaxLookup; ++Count) { - assert(Visited.insert(V).second && "Cycle detected. Unreachable code?"); if (auto *GEP = dyn_cast<GEPOperator>(V)) { V = GEP->getPointerOperand(); } else if (Operator::getOpcode(V) == Instruction::BitCast || |