llvm-project/llvm/test/LTO/X86/cfi-func-remove.ll
Matthew Voss a1ca3af31e [llvm] A Unified LTO Bitcode Frontend
Here's a high level summary of the changes in this patch. For more
information on rational, see the RFC.
(https://discourse.llvm.org/t/rfc-a-unified-lto-bitcode-frontend/61774).

  - Add config parameter to LTO backend, specifying which LTO mode is
    desired when using unified LTO.
  - Add unified LTO flag to the summary index for efficiency. Unified
    LTO modules can be detected without parsing the module.
  - Make sure that the ModuleID is generated by incorporating more types
    of symbols.

Differential Revision: https://reviews.llvm.org/D123803
2023-07-05 14:53:14 -07:00

11 lines
425 B
LLVM

; RUN: opt -thinlto-bc -thinlto-split-lto-unit -unified-lto <%s -o %t0
; RUN: llvm-lto2 run -o %t1 --unified-lto=full --save-temps %t0
; RUN: llvm-dis <%t1.0.0.preopt.bc 2>&1 | FileCheck %s --implicit-check-not warning:
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!cfi.functions = !{!2}
; CHECK-NOT: cfi.functions
!2 = !{!"main", i8 0}