[PATCH] D134557: [BranchRelaxation] Fall through only if block has no unconditional branches

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 12:41:04 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/BranchRelaxation.cpp:508
+    bool FailToAnalyze = TII->analyzeBranch(*PrevBB, TBB, FBB, Cond);
+    if (!FailToAnalyze and !FBB) {
+      if (TBB and TBB == DestBB) {
----------------
I don't think I've ever seen someone use the and macro before 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134557



More information about the llvm-commits mailing list