[PATCH] D35267: Pass Divergence Analysis data to selection DAG to drive divergence dependent instruction selection

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 16:30:59 PST 2017


efriedma added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAG.cpp:7311
     } while (UI != UE && *UI == User);
-
+    User->SDNodeBits.IsDivergent |= To->getNode()->isDivergent();
     // Now that we have modified User, add it back to the CSE maps.  If it
----------------
Missing code to unset IsDivergent if a node becomes non-divergent, and missing code to recursively propagate changes.


https://reviews.llvm.org/D35267





More information about the llvm-commits mailing list