summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TailDuplicator.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2018-06-18 23:30:03 +0000
committerJason Molenda <jmolenda@apple.com>2018-06-18 23:30:03 +0000
commit87f0f95e4c5fd702d4c03a53de1d5d8d071b8946 (patch)
tree1f395293593329fd017f5175d131dfc201a4b9fd /llvm/lib/CodeGen/TailDuplicator.cpp
parenta7b7f2f4d85b8111caa32bcd9dc8e95c5963abdd (diff)
downloadbcm5719-llvm-87f0f95e4c5fd702d4c03a53de1d5d8d071b8946.tar.gz
bcm5719-llvm-87f0f95e4c5fd702d4c03a53de1d5d8d071b8946.zip
Some NFC changes to how we scan of kexts & kernels in memory in the
DynamicLoaderDarwinKernel plugin. Created a new function ReadMachHeader and instead of reading through the target cached memory reader, start by reading only a mach header sized chunk of memory, then check it for a valid mach-o magic # and use the size of the load commands to pre-fetch the entire load commands of the kext which is the only thing we're going to read, instead of letting the generic mach-o parser read it in 512 byte chunks. Functionally this is doing exactly the same thing as before, but by cutting down on the # of packets going back and forth, even on a local connection it's close to a quarter faster than it was before. <rdar://problem/38570146> llvm-svn: 334995
Diffstat (limited to 'llvm/lib/CodeGen/TailDuplicator.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud