[PATCH] D83311: [CodeMoverUtils] Add optional data dependence checks using MSSA

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 09:02:17 PDT 2020


fhahn added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/CodeMoverUtils.cpp:368
   // Skip tests when we don't have PDT or DI
-  if (!PDT || !DI)
+  if (!PDT || !(DI || MSSAU))
     return false;
----------------
RithikSharma wrote:
> fhahn wrote:
> > Does it make sense to even call this function if either of those are not available, i.e. if all those required wouldn't it make sense to assert that they are all provided or turn them into references?
> I'm sorry, I didn't understand. We need at least DI or MSSA to find dependency. 
I meant does it make sense to call this function without  `PDT == nullptr` for example? It seems like it is kind of required here, right?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83311





More information about the llvm-commits mailing list