As pointed out by @thakis, currently CallSiteSplitting bails out after checking the first PHI node. We should check all PHI nodes, until we find one where call site splitting is beneficial. This patch also slightly simplifies the code using BasicBlock::phis(). Reviewers: davidxl, junbuml, thakis Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D77089 |
||
|---|---|---|
| .. | ||
| callsite-instructions-before-call.ll | ||
| callsite-no-or-structure.ll | ||
| callsite-no-splitting.ll | ||
| callsite-split-debug.ll | ||
| callsite-split-or-phi.ll | ||
| callsite-split-preserve-debug.ll | ||
| callsite-split.ll | ||
| convergent.ll | ||
| lpad.ll | ||
| musttail.ll | ||
| noduplicate.ll | ||
| split-loop.ll | ||