forked from OSchip/llvm-project
[DAG] Fix updateDivergence calculation
Check correct SDNode when deciding if we should update the divergence property. llvm-svn: 340851
This commit is contained in:
parent
10de2775bd
commit
0b8cb46e0b
|
@ -7815,7 +7815,7 @@ void SelectionDAG::ReplaceAllUsesWith(SDNode *From, const SDValue *To) {
|
|||
const SDValue &ToOp = To[Use.getResNo()];
|
||||
++UI;
|
||||
Use.set(ToOp);
|
||||
if (To->getNode()->isDivergent() != From->isDivergent())
|
||||
if (ToOp->isDivergent() != From->isDivergent())
|
||||
updateDivergence(User);
|
||||
} while (UI != UE && *UI == User);
|
||||
// Now that we have modified User, add it back to the CSE maps. If it
|
||||
|
|
Loading…
Reference in New Issue