diff options
author | OCHyams <orlando.hyams@sony.com> | 2021-04-15 16:34:19 +0100 |
---|---|---|
committer | OCHyams <orlando.hyams@sony.com> | 2021-04-15 16:35:45 +0100 |
commit | 17cec07184d3e83b6ae5f5c0d579083755d6263a (patch) | |
tree | 47dc747ac5e1f1184d4061411f580a761b2bc07e /llvm/lib/IR/Value.cpp | |
parent | ff0ada4e1607385be30b2b38885cea2127568e04 (diff) | |
download | llvm-17cec07184d3e83b6ae5f5c0d579083755d6263a.zip llvm-17cec07184d3e83b6ae5f5c0d579083755d6263a.tar.gz llvm-17cec07184d3e83b6ae5f5c0d579083755d6263a.tar.bz2 |
Revert "[DebugInfo] Replace debug uses in replaceUsesOutsideBlock"
This reverts commit 96a1e6b7cf72d9bd625903ea4b441404200383cf.
Failing build bots e.g. https://lab.llvm.org/buildbot/#/builders/161/builds/163
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 12c238a..544f4d6 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -33,7 +33,6 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Transforms/Utils/Local.h" #include <algorithm> using namespace llvm; @@ -532,17 +531,6 @@ void Value::replaceNonMetadataUsesWith(Value *New) { doRAUW(New, ReplaceMetadataUses::No); } -/// Replace llvm.dbg.* uses of MetadataAsValue(ValueAsMetadata(V)) outside BB -/// with New. -static void replaceDbgUsesOutsideBlock(Value *V, Value *New, BasicBlock *BB) { - SmallVector<DbgVariableIntrinsic *> DbgUsers; - findDbgUsers(DbgUsers, V); - for (auto *DVI : DbgUsers) { - if (DVI->getParent() != BB) - DVI->replaceVariableLocationOp(V, New); - } -} - // Like replaceAllUsesWith except it does not handle constants or basic blocks. // This routine leaves uses within BB. void Value::replaceUsesOutsideBlock(Value *New, BasicBlock *BB) { @@ -553,7 +541,6 @@ void Value::replaceUsesOutsideBlock(Value *New, BasicBlock *BB) { "replaceUses of value with new value of different type!"); assert(BB && "Basic block that may contain a use of 'New' must be defined\n"); - replaceDbgUsesOutsideBlock(this, New, BB); replaceUsesWithIf(New, [BB](Use &U) { auto *I = dyn_cast<Instruction>(U.getUser()); // Don't replace if it's an instruction in the BB basic block. |