[PATCH] Replace custom getNumPreds/etc with PredIteratorCache that does the same thing

Quentin Colombet qcolombet at apple.com
Thu Apr 30 12:01:21 PDT 2015


Hi Daniel,

Don’t know either if that makes sense, but LGTM ;).

Cheers,
-Quentin


================
Comment at: lib/Transforms/Utils/PromoteMemoryToRegister.cpp:269
@@ -267,3 +268,3 @@
 
-  /// Lazily compute the number of predecessors a block has.
-  DenseMap<const BasicBlock *, unsigned> BBNumPreds;
+  /// Cache of predecessor info
+  PredIteratorCache PredCache;
----------------
Period at the end of the comment ;).

http://reviews.llvm.org/D9167

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list