Skip to content
Commit cd0b1bf0 authored by Dan Gohman's avatar Dan Gohman
Browse files

Fix SelectionDAG::ReplaceAllUsesWith to behave correctly when

uses are added to the From node while it is processing From's
use list, because of automatic local CSE. The fix is to avoid
visiting any new uses.

Fix a few places in the DAGCombiner that assumed that after
a RAUW call, the From node has no users and may be deleted.

This fixes PR3018.

llvm-svn: 62533
parent 634b6581
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment