[PATCH] D36115: [Loop Vectorize] Block Probability for Predicated Blocks

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 07:07:38 PDT 2017


fhahn added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:2002
+
+  unsigned getReciprocalPredBlockProb(BasicBlock *BB) {
+    if ((BFI->getBlockFreq(BB)).getFrequency() == 0 ||
----------------
I think this could be const? and BB could also be const?

Is BFI guaranteed to be non-NULL?


https://reviews.llvm.org/D36115





More information about the llvm-commits mailing list