[PATCH] D146136: [llvm][CycleInfo] Quick look-up for block in cycle.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 09:12:06 PDT 2023


foad added inline comments.


================
Comment at: llvm/include/llvm/ADT/SetVector.h:42
 public:
-  using value_type = T;
-  using key_type = T;
-  using reference = T&;
-  using const_reference = const T&;
+  using value_type = typename Vector::value_type;
+  using key_type = typename Set::key_type;
----------------
Since the intention here is to allow key_type and value_type to be different, you should really add some tests for that in unittests/ADT/SetVectorTest.cpp.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146136/new/

https://reviews.llvm.org/D146136



More information about the llvm-commits mailing list