This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Fix UpdateChains handling of TokenFactors
ClosedPublic

Authored by niravd on Jan 31 2018, 11:26 AM.

Details

Summary

In Instruction Selection UpdateChains replaces all matched Nodes'
chain references including interior token factors and deletes them.
This may allow nodes which depend on these interior nodes but are not
part of the set of matched nodes to be left with a dangling dependence.
Avoid this by doing the replacement for matched non-TokenFactor nodes.

Fixes PR36164.

Diff Detail

Event Timeline

niravd created this revision.Jan 31 2018, 11:26 AM
RKSimon accepted this revision.Feb 1 2018, 3:48 AM

LGTM

This revision is now accepted and ready to land.Feb 1 2018, 3:48 AM
This revision was automatically updated to reflect the committed changes.