OSDN Git Service

Preserve DebugInfo when replacing values in DAGCombiner
authorNirav Dave <niravd@google.com>
Wed, 15 Jun 2016 14:50:08 +0000 (14:50 +0000)
committerNirav Dave <niravd@google.com>
Wed, 15 Jun 2016 14:50:08 +0000 (14:50 +0000)
commitd2f1fe5fc1a9f665c472512ba5eeee77fd8435a4
tree1f4dedb1080beab9b99f0a97576fe04ac1b1275d
parenta94e734a248741bf32cbfa92583d150e91c73332
Preserve DebugInfo when replacing values in DAGCombiner

[DAG] Previously debug values would transfer debuginfo for the selected
start node for a replacement which allows for debug to be dropped.

Push debug value transfer to occur with node/value replacement in
SelectionDAG, remove now extraneous transfers of debug values.

This refixes PR9817 which was being incompletely checked in the
testsuite.

Reviewers: jyknight

Subscribers: dblaikie, llvm-commits

Differential Revision: http://reviews.llvm.org/D21037

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272792 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
lib/Target/Hexagon/HexagonISelLowering.cpp
test/DebugInfo/X86/dbg-value-dag-combine.ll