[llvm] r340851 - [DAG] Fix updateDivergence calculation
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 28 11:12:35 PDT 2018
Author: niravd
Date: Tue Aug 28 11:12:35 2018
New Revision: 340851
URL: http://llvm.org/viewvc/llvm-project?rev=340851&view=rev
Log:
[DAG] Fix updateDivergence calculation
Check correct SDNode when deciding if we should update the divergence
property.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=340851&r1=340850&r2=340851&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Aug 28 11:12:35 2018
@@ -7815,7 +7815,7 @@ void SelectionDAG::ReplaceAllUsesWith(SD
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
More information about the llvm-commits
mailing list