[PATCH] D100002: [CSSPGO] Move pseudo probes to the beginning of a block to unblock SelectionDAG combine.

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 7 17:10:58 PDT 2021


wmi added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:8004-8005
+    auto FirstInst = Block.getFirstInsertionPt();
+    while (FirstInst != Block.end() && FirstInst->isDebugOrPseudoInst())
+      ++FirstInst;
+    BasicBlock::iterator I(FirstInst);
----------------
Why pseudo probes need to be put after debug instructions on the top, is it necessary? 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100002



More information about the llvm-commits mailing list