[PATCH] D106154: [WIP][AbstractAttributor] Fold __kmpc_parallel_level if possible

Shilei Tian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 07:47:05 PDT 2021


tianshilei1992 added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/OpenMPOpt.cpp:437
 template <typename Ty, bool InsertInvalidates = true>
-struct BooleanStateWithPtrSetVector : public BooleanState {
-
-  bool contains(Ty *Elem) const { return Set.contains(Elem); }
-  bool insert(Ty *Elem) {
+struct BooleanStateWithSetVector : public BooleanState {
+  bool contains(const Ty &Elem) const { return Set.contains(Elem); }
----------------
These changes are covered by D106149, which will not be part of this patch eventually.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106154



More information about the llvm-commits mailing list