<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I’ve got some new patches and some numbers.</div><div class=""><br class=""></div><div class="">The patches are all the changes required to strip intrinsics using the preprocessor defines I showed in my earlier patches. It actually isn’t that much change to LLVM. Clang will need similar changes too. There were only 9 files that referenced target intrinsics outside the corresponding target.</div><div class=""><br class=""></div><div class="">These patches are still WIP, and there is some nastiness, but they work.</div><div class=""><br class=""></div><div class="">Using these patches I see about 500k reduction in binary size when building libLLVM.dylib with just the ARM backend enabled.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(56, 193, 255); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #29f914" class="">> </span><span style="font-variant-ligatures: no-common-ligatures; color: #457bf9" class="">du</span><span style="font-variant-ligatures: no-common-ligatures; color: #29f914" class=""> </span>-k<span style="font-variant-ligatures: no-common-ligatures; color: #29f914" class=""> </span>../<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">*</span>.dylib</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">34236<span class="Apple-tab-span" style="white-space:pre">     </span>../libLLVM-ARM-only-after.dylib</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">34732<span class="Apple-tab-span" style="white-space:pre">  </span>../libLLVM-ARM-only-before.dylib</div></div><div class=""><br class=""></div><div class="">These savings are substantial for our use case.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""></div><div class=""></div></body></html>