summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfoMetadata.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-13 01:09:52 +0000
committerVedant Kumar <vsk@apple.com>2018-02-13 01:09:52 +0000
commit4011c26cc7cc3762a20d3927fc8cd80ad7b4d893 (patch)
tree208c0512ccc332adb21472aa66f747d2c2a38699 /llvm/lib/IR/DebugInfoMetadata.cpp
parent31ec356a488a364c55782e82691afd1b8f449bc5 (diff)
downloadbcm5719-llvm-4011c26cc7cc3762a20d3927fc8cd80ad7b4d893.tar.gz
bcm5719-llvm-4011c26cc7cc3762a20d3927fc8cd80ad7b4d893.zip
[Utils] Salvage debug info of DCE'ed mul/sdiv/srem instructions
Here are the number of additional debug values salvaged in a stage2 build of clang: 63 SALVAGE: MUL 1250 SALVAGE: SDIV (No values were salvaged from `srem` instructions in this experiment, but it's a simple case to handle so we might as well.) llvm-svn: 324976
Diffstat (limited to 'llvm/lib/IR/DebugInfoMetadata.cpp')
-rw-r--r--llvm/lib/IR/DebugInfoMetadata.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfoMetadata.cpp b/llvm/lib/IR/DebugInfoMetadata.cpp
index fc3d344a11c..ee3eaaed6b3 100644
--- a/llvm/lib/IR/DebugInfoMetadata.cpp
+++ b/llvm/lib/IR/DebugInfoMetadata.cpp
@@ -708,6 +708,8 @@ bool DIExpression::isValid() const {
case dwarf::DW_OP_plus:
case dwarf::DW_OP_minus:
case dwarf::DW_OP_mul:
+ case dwarf::DW_OP_div:
+ case dwarf::DW_OP_mod:
case dwarf::DW_OP_or:
case dwarf::DW_OP_xor:
case dwarf::DW_OP_shl:
OpenPOWER on IntegriCloud