[PATCH] D82290: [CodeMoverUtils][WIP] Isolate checks strictly related to the code motion candidate instruction

Bardia Mahjour via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 11:49:29 PDT 2020


bmahjour added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/CodeMoverUtils.cpp:313
 
-  if (I.isTerminator())
-    return reportInvalidCandidate(I, NotMovedTerminator);
----------------
why do we start allowing terminators as safe candidates for code motion? Has this constraint been moved to another place that doesn't show up in this patch? The same question applies to checking for `isa<PHINode>(InsertPoint)` above.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82290





More information about the llvm-commits mailing list