[PATCH] D46564: [SSAUpdaterBulk] Sort blocks in IDF to avoid non-determinism.

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 17:30:08 PDT 2018


davide added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:361-364
+  unsigned NextBBNum = 0;
+  for (auto &BB : F)
+    BBNumbers[&BB] = NextBBNum++;
+
----------------
Do you need to number also unreachable blocks? You could skip them, I think.


Repository:
  rL LLVM

https://reviews.llvm.org/D46564





More information about the llvm-commits mailing list