summaryrefslogtreecommitdiffstats
path: root/libclc/generic
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-11-14 21:49:06 +0000
committerReid Kleckner <rnk@google.com>2017-11-14 21:49:06 +0000
commit29a5c03cc24dc7315adbf881e9082ccab4c62904 (patch)
tree13969076dc3d8c29e5cb0a803f5612a40872d779 /libclc/generic
parent3573d8da3657ac62b4ebe2c385c5e6aad99f1fe6 (diff)
downloadbcm5719-llvm-29a5c03cc24dc7315adbf881e9082ccab4c62904.tar.gz
bcm5719-llvm-29a5c03cc24dc7315adbf881e9082ccab4c62904.zip
Make salvageDebugInfo of casts work for dbg.declare and dbg.addr
Summary: Instcombine (and probably other passes) sometimes want to change the type of an alloca. To do this, they generally create a new alloca with the desired type, create a bitcast to make the new pointer type match the old pointer type, replace all uses with the cast, and then simplify the casts. We already knew how to salvage dbg.value instructions when removing casts, but we can extend it to cover dbg.addr and dbg.declare. Fixes a debug info quality issue uncovered in Chromium in http://crbug.com/784609 Reviewers: aprantl, vsk Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D40042 llvm-svn: 318203
Diffstat (limited to 'libclc/generic')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud