[PATCH] D80643: [CodeMoverUtils] Move OrderedInstructions to CodeMoverUtils

Whitney Tsang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 07:06:11 PDT 2020


Whitney added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/CodeMoverUtils.cpp:343
   DT.updateDFSNumbers();
-  const bool MoveForward = OI.domTreeLevelBefore(&I, &InsertPoint);
+  bool MoveForward = domTreeLevelBefore(&DT, &I, &InsertPoint);
   Instruction &StartInst = (MoveForward ? I : InsertPoint);
----------------
Why `const` is removed?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80643





More information about the llvm-commits mailing list