From f46af9e9bc1c67fb5df95fc5a8b5ad72b59c5c3d Mon Sep 17 00:00:00 2001 From: Maksim Panchenko Date: Wed, 23 Jun 2021 16:13:30 -0700 Subject: [PATCH] [BOLT][TESTS] Fix ICF test case Summary: Host compiler may generate duplicate functions and as a result BOLT can fold more than 1 function. (cherry picked from FBD29347302) --- bolt/test/X86/icf-jump-tables.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/test/X86/icf-jump-tables.test b/bolt/test/X86/icf-jump-tables.test index bd1f6b3f2b35..36873f39f7c0 100644 --- a/bolt/test/X86/icf-jump-tables.test +++ b/bolt/test/X86/icf-jump-tables.test @@ -7,7 +7,7 @@ # RUN: llvm-bolt %t.exe -icf -o %t.bolt |& FileCheck %s ## Check that BOLT successfully folded a function with jump table: -# CHECK: ICF folded 1 +# CHECK: ICF folded {{.*}}. {{[^0]}} functions had jump tables. ## Check that no relocations against undefined symbols were emitted: # CHECK-NOT: Undefined temporary symbol