[PATCH] D43743: StructurizeCFG: Test for branch divergence correctly

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 09:08:31 PST 2018


nhaehnle added inline comments.


================
Comment at: lib/Transforms/Scalar/StructurizeCFG.cpp:934
 
+  DA = nullptr;
+
----------------
dberlin wrote:
> Why is this being set to null here?
DA is a member variable that needs to be re-initialized on every run of the pass. This is just like the other analyses, DT and LI.

It is set to null because it is optional and not always available. It is only used on specific targets.


Repository:
  rL LLVM

https://reviews.llvm.org/D43743





More information about the llvm-commits mailing list