[PATCH] D27534: [BDCE] Skip metadata while replacing uses

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 13:01:26 PST 2016


davide created this revision.
davide added a reviewer: hfinkel.
davide added a subscriber: llvm-commits.

The fix committed in r288851 doesn't cover all the cases. In particular, if we have an instruction with side effects which has a no non-dbg use not depending on the bits, we still perform RAUW destroying the dbg.value's first argument.
Prevent metadata from being replaced here to avoid the issue.


https://reviews.llvm.org/D27534

Files:
  include/llvm/IR/Value.h
  lib/IR/Value.cpp
  lib/Transforms/Scalar/BDCE.cpp
  test/Transforms/BDCE/dbg-multipleuses.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27534.80643.patch
Type: text/x-patch
Size: 4777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/5ac6da4a/attachment.bin>


More information about the llvm-commits mailing list