[PATCH] D101187: [MachineCSE] Prevent CSE of non-local convergent instrs

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 01:40:03 PDT 2021


foad added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineCSE.cpp:437
+  MachineBasicBlock *BB = MI->getParent();
+  // Prevent CSE-ing non-local convergent instructions.
+  if (MI->isConvergent() && CSBB != BB)
----------------
If this is a correctness issue then surely it should not be done inside "is *profitable* to cse"?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101187



More information about the llvm-commits mailing list