[PATCH] D110862: X86InstrInfo: Look across basic blocks in optimizeCompareInstr

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 1 02:54:38 PDT 2021


pengfei added inline comments.


================
Comment at: llvm/lib/Target/X86/X86InstrInfo.cpp:4476-4479
+    // Only move within the same block so we don't accidentally move to a
+    // block with higher execution frequency.
+    if (&CmpMBB != SubBB)
+      return false;
----------------
Do we have a test for it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110862



More information about the llvm-commits mailing list