[PATCH] D94547: [lld-macho] Run ObjCContractPass during LTO

Nathan Lanza via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 13 18:42:05 PST 2021


lanza added inline comments.


================
Comment at: llvm/lib/LTO/LTOBackend.cpp:432
   }
 
   auto Stream = AddStream(Task);
----------------
lanza wrote:
> Sorry, to be clearer I think around here is the analogous point for the LTO.cpp pipeline. It directly precedes `addPassesToEmitFile` in the legacy impl.
codegen and optimizations aren't directly coupled. You can codegen without optimizing and vice versa and run optimizations multiple times in the legacy impl. So this pass should stay coupled to codegen.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94547/new/

https://reviews.llvm.org/D94547



More information about the llvm-commits mailing list