We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd21a4 commit 7fe4579Copy full SHA for 7fe4579
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
@@ -2230,12 +2230,6 @@ bool RISCVInstrInfo::isFunctionSafeToOutlineFrom(
2230
MachineFunction &MF, bool OutlineFromLinkOnceODRs) const {
2231
const Function &F = MF.getFunction();
2232
2233
- // XXX cheriot: Disable machine outliner
2234
- RISCVABI::ABI MFABI = MF.getSubtarget<RISCVSubtarget>().getTargetABI();
2235
- bool IsCheriot = (MFABI == RISCVABI::ABI_CHERIOT) || (MFABI == RISCVABI::ABI_CHERIOT_BAREMETAL);
2236
- if (IsCheriot)
2237
- return false;
2238
-
2239
// Can F be deduplicated by the linker? If it can, don't outline from it.
2240
if (!OutlineFromLinkOnceODRs && F.hasLinkOnceODRLinkage())
2241
return false;
0 commit comments