getNode optimizes (ext (trunc x)) to x and the dbgvalue node on trunc is lost. The fix calls transferDbgValues to add the dbgvalue to x.
Add DebugInfo/AArch64/dbg-value-i16.ll
Patch by Sejong Oh!
Differential D46348
[SelectionDAG] Transfer DbgValues when casts are optimized in SelectionDAG::getNode asmith on May 1 2018, 9:57 PM. Authored by
Details getNode optimizes (ext (trunc x)) to x and the dbgvalue node on trunc is lost. The fix calls transferDbgValues to add the dbgvalue to x. Add DebugInfo/AArch64/dbg-value-i16.ll Patch by Sejong Oh!
Diff Detail
Event Timeline
Comment Actions Thanks for the patch! Could you upload a diff with context (git diff -U10000)?
|