[PATCH] D52322: Pass code-model through Module IR to LTO which will use is

Caroline Tice via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 20 14:15:17 PDT 2018


cmtice created this revision.
cmtice added reviewers: tejohnson, pcc.
Herald added subscribers: llvm-commits, dexonsmith, steven_wu, inglorion, mehdi_amini.

Currently the code-model does not get saved in the module IR, so if a code model is specified when compiling with LTO, it gets lost and is not propagated properly to LTO. This patch (along with one to the Clang front end) fixes that.

Fixes PR33306.


Repository:
  rL LLVM

https://reviews.llvm.org/D52322

Files:
  include/llvm/IR/Module.h
  lib/IR/Module.cpp
  lib/LTO/LTOBackend.cpp
  test/LTO/X86/codemodel-1.ll
  test/LTO/X86/codemodel-2.ll
  test/LTO/X86/codemodel-3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52322.166358.patch
Type: text/x-patch
Size: 4677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180920/26a914e1/attachment.bin>


More information about the llvm-commits mailing list