mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:26:07 +00:00

Turning on `enable_noundef_analysis` flag allows better codegen by removing freeze instructions. I modified clang by renaming `enable_noundef_analysis` flag to `disable-noundef-analysis` and turning it off by default. Test updates are made as a separate patch: D108453 Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D105169
10 lines
417 B
C++
10 lines
417 B
C++
// RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules -fmodules-codegen -emit-module -fmodule-name=foo %S/Inputs/codegen-extern-template.modulemap -x c++ -o %t.pcm
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -fmodules -fmodule-file=%t.pcm %s -emit-llvm -o - | FileCheck %s
|
|
// expected-no-diagnostics
|
|
|
|
#include "codegen-extern-template.h"
|
|
|
|
template int foo<int>();
|
|
|
|
// CHECK: define weak_odr noundef i32 @_Z3fooIiET_v
|