[llvm] MachineBlockPlacement: Add tolerance to comparisons (PR #67197)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 14:33:03 PDT 2023


================
@@ -1714,8 +1714,9 @@ MachineBasicBlock *MachineBlockPlacement::selectBestCandidateBlock(
     return nullptr;
 
   bool IsEHPad = WorkList[0]->isEHPad();
+  bool ReverseOrder = IsEHPad;
----------------
rlavaee wrote:

No need to define a new variable. The logic is extensively explained in the comments.

https://github.com/llvm/llvm-project/pull/67197


More information about the llvm-commits mailing list