[PATCH] D46564: [SSAUpdaterBulk] Sort blocks in IDF to avoid non-determinism.
Michael Zolotukhin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 7 17:38:34 PDT 2018
mzolotukhin added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:361-364
+ unsigned NextBBNum = 0;
+ for (auto &BB : F)
+ BBNumbers[&BB] = NextBBNum++;
+
----------------
davide wrote:
> Do you need to number also unreachable blocks? You could skip them, I think.
That's true, they shouldn't be in IDF.
Repository:
rL LLVM
https://reviews.llvm.org/D46564
More information about the llvm-commits
mailing list