[PATCH] D140931: Improve and enable folding of conditional branches with tail calls.

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 17:03:38 PST 2023


goldstein.w.n added a comment.

@hans Added you b.c you seem to the original author. I didn't quite understand the rationale behind leaving this off given that:

1. `replaceBranchWithTailCall` already keep the condition constant L3020: `if (CC != BranchCond[0].getImm())`
2. The entire transform is guarded behind `MBB == TBB`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140931



More information about the llvm-commits mailing list