This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Consolidate (t|T)ransferDbgValues methods, NFC.
ClosedPublic

Authored by vsk on Nov 15 2017, 2:59 PM.

Details

Summary

TransferDbgValues (capital 'T') is wired into ReplaceAllUsesWith, and
transferDbgValues (lowercase 't') is used elsewhere (e.g in Legalize).

Both functions should be doing the exact same thing. This patch
consolidates the logic into one place.

Diff Detail

Event Timeline

vsk created this revision.Nov 15 2017, 2:59 PM
aprantl accepted this revision.Nov 15 2017, 5:38 PM

good catch!

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
7047

the \p is probably overkill here

This revision is now accepted and ready to land.Nov 15 2017, 5:38 PM
This revision was automatically updated to reflect the committed changes.