[PATCH] D42726: [x86] Make the retpoline thunk insertion a machine function pass.

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 22:25:23 PST 2018


chandlerc created this revision.
chandlerc added reviewers: echristo, MatzeB.
Herald added subscribers: hiraditya, mehdi_amini, mcrosier, sanjoy.

This removes the need for a machine module pass using some deeply
questionable hacks. This should address PR36123 which is a case where in
full LTO the memory usage of a machine module pass actually ended up
being significant.

We should revert this on trunk as soon as we understand and fix the
memory usage issue, but we should include this in any backports of
retpolines themselves.


Repository:
  rL LLVM

https://reviews.llvm.org/D42726

Files:
  llvm/lib/Target/X86/X86.h
  llvm/lib/Target/X86/X86RetpolineThunks.cpp
  llvm/test/CodeGen/X86/O0-pipeline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42726.132099.patch
Type: text/x-patch
Size: 9479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180131/f333345a/attachment.bin>


More information about the llvm-commits mailing list