
Switches import call optimization from being enabled by an LLVM flag to instead using a module attribute, and creates a new Clang flag that will set that attribute. This addresses the concern raised in the original PR: <https://github.com/llvm/llvm-project/pull/121516#discussion_r1911763991> This change also only creates the Called Global info if the module attribute is present, addressing this concern: <https://github.com/llvm/llvm-project/pull/122762#pullrequestreview-2547595934>
6 lines
143 B
C
6 lines
143 B
C
// RUN: %clang_cc1 -import-call-optimization -emit-llvm %s -o - | FileCheck %s
|
|
|
|
void f(void) {}
|
|
|
|
// CHECK: !"import-call-optimization", i32 1}
|