Skip to content

Commit 7fe4579

Browse files
committed
[CHERIoT] Re-enable MachineOutliner for CHERIoT
1 parent 3fd21a4 commit 7fe4579

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,12 +2230,6 @@ bool RISCVInstrInfo::isFunctionSafeToOutlineFrom(
22302230
MachineFunction &MF, bool OutlineFromLinkOnceODRs) const {
22312231
const Function &F = MF.getFunction();
22322232

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-
22392233
// Can F be deduplicated by the linker? If it can, don't outline from it.
22402234
if (!OutlineFromLinkOnceODRs && F.hasLinkOnceODRLinkage())
22412235
return false;

0 commit comments

Comments
 (0)