aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-07-12 14:58:15 +0000
committerFangrui Song <maskray@google.com>2019-07-12 14:58:15 +0000
commitb251cc0d91362ea44f00a0138998a0272791f7dc (patch)
treefb2f4a2e59243cd19de79db04acf1e1e408e9661 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parenta196469e67ce578df4fc9f348cc5b7221f12b239 (diff)
downloadllvm-b251cc0d91362ea44f00a0138998a0272791f7dc.zip
llvm-b251cc0d91362ea44f00a0138998a0272791f7dc.tar.gz
llvm-b251cc0d91362ea44f00a0138998a0272791f7dc.tar.bz2
Delete dead stores
llvm-svn: 365903
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 4256ede..656ec7d 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -740,10 +740,8 @@ void UserValue::extendDef(SlotIndex Idx, DbgValueLocation Loc, LiveRange *LR,
}
// Limited by the next def.
- if (I.valid() && I.start() < Stop) {
+ if (I.valid() && I.start() < Stop)
Stop = I.start();
- ToEnd = false;
- }
// Limited by VNI's live range.
else if (!ToEnd && Kills)
Kills->push_back(Stop);