[llvm] [Machine Outliner][RISCV] Input section aware machine outlining (PR #226126)

Garvit Gupta via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 04:02:15 PDT 2026


================

----------------
quic-garvgupt wrote:

X86 was previously allowing outlining from named section functions. And I do not see any logic in X86InstrInfo.cpp where the outlined function was inheriting the parent's input section. Arguably that's not fully correct however to preserve that behavior, I haven't override this for x86.

>Can we combine the conditions that apply to all targets into a common helper?

Can you confirm if you had something like this in mind in `TargetTransformInfo.cpp`


```
virtual bool enableSectionAwareOutlining() const { return F.hasSection() &&  supportsSectionAwareOutlining() }
```


https://github.com/llvm/llvm-project/pull/226126


More information about the llvm-commits mailing list