[llvm] [RISCV] [MachineOutliner] Analyze all candidates (PR #127659)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 21:55:10 PST 2025
================
@@ -3015,30 +3015,25 @@ static bool cannotInsertTailCall(const MachineBasicBlock &MBB) {
return false;
}
-static std::optional<MachineOutlinerConstructionID>
-analyzeCandidate(outliner::Candidate &C) {
+static bool analyzeCandidate(outliner::Candidate &C) {
// If last instruction is return then we can rely on
// the verification already performed in the getOutliningTypeImpl.
if (C.back().isReturn()) {
assert(!cannotInsertTailCall(*C.getMBB()) &&
"The candidate who uses return instruction must be outlined "
"using tail call");
- return MachineOutlinerTailCall;
+ return false;
}
----------------
lenary wrote:
I see. This makes sense, even if the structure of the code is opaque.
https://github.com/llvm/llvm-project/pull/127659
More information about the llvm-commits
mailing list