Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / xray-always-emit-customevent.cpp
blob289111c90ff0acc3bc2e9a750e8e59d6ac09d098
1 // RUN: %clang_cc1 -fxray-instrument -fxray-always-emit-customevents -x c++ \
2 // RUN: -std=c++11 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
3 // RUN: | FileCheck %s
5 // CHECK-LABEL: @_Z15neverInstrumentv
6 [[clang::xray_never_instrument]] void neverInstrument() {
7 static constexpr char kPhase[] = "never";
8 __xray_customevent(kPhase, 5);
9 // CHECK: call void @llvm.xray.customevent(ptr{{.*}}, i64 5)