[llvm] [RISCV] Implement tail call optimization in machine outliner (PR #115297)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 19:41:46 PST 2024
================
@@ -2961,6 +2990,17 @@ RISCVInstrInfo::getOutliningCandidateInfo(
for (auto &MI : RepeatedSequenceLocs[0])
SequenceSize += getInstSizeInBytes(MI);
+ if (!cannotInsertTailCall(RepeatedSequenceLocs[0].back())) {
+ // tail function = 8 bytes. Can't be compressed
----------------
topperc wrote:
Why can't it be compressed?
https://github.com/llvm/llvm-project/pull/115297
More information about the llvm-commits
mailing list