r350952 - [MergeFunc] Update clang test for r350939
Vedant Kumar via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 11 10:51:02 PST 2019
Author: vedantk
Date: Fri Jan 11 10:51:02 2019
New Revision: 350952
URL: http://llvm.org/viewvc/llvm-project?rev=350952&view=rev
Log:
[MergeFunc] Update clang test for r350939
In r350939, the MergeFunc pass learned to erase duplicate functions
which are discardable if unused.
Modified:
cfe/trunk/test/CodeGenCXX/merge-functions.cpp
Modified: cfe/trunk/test/CodeGenCXX/merge-functions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/merge-functions.cpp?rev=350952&r1=350951&r2=350952&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/merge-functions.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/merge-functions.cpp Fri Jan 11 10:51:02 2019
@@ -1,5 +1,5 @@
// REQUIRES: x86-registered-target
-// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O1 -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O1 -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s -implicit-check-not=_ZN1A1gEiPi
// Basic functionality test. Function merging doesn't kick in on functions that
// are too simple.
@@ -9,6 +9,4 @@ struct A {
virtual int g(int x, int *p) { return x ? *p : 1; }
} a;
-// CHECK: define {{.*}} @_ZN1A1gEiPi
-// CHECK-NEXT: tail call i32 @_ZN1A1fEiPi
-// CHECK-NEXT: ret
+// CHECK: define {{.*}} @_ZN1A1fEiPi
More information about the cfe-commits
mailing list