Skip to content

Commit

Permalink
[BOLT][TESTS] Fix ICF test case
Browse files Browse the repository at this point in the history
Summary:
Host compiler may generate duplicate functions and as a result BOLT can
fold more than 1 function.

(cherry picked from FBD29347302)
  • Loading branch information
maksfb committed Jun 23, 2021
1 parent be0da0f commit f46af9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolt/test/X86/icf-jump-tables.test
Expand Up @@ -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

0 comments on commit f46af9e

Please sign in to comment.