[PATCH] D49880: [MachineOutliner] Clean up subtarget handling.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 26 15:26:52 PDT 2018
efriedma created this revision.
efriedma added a reviewer: paquette.
Call shouldOutlineFromFunctionByDefault, isFunctionSafeToOutlineFrom, getOutliningType, and getMachineOutlinerMBBFlags using the correct TargetInstrInfo. And don't create a MachineFunction for a function declaration.
The call to getOutliningCandidateInfo is still a little weird, but at least the weirdness is explicitly called out.
Repository:
rL LLVM
https://reviews.llvm.org/D49880
Files:
lib/CodeGen/MachineOutliner.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49880.157582.patch
Type: text/x-patch
Size: 6848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180726/93adff52/attachment-0001.bin>
More information about the llvm-commits
mailing list