Skip to content

Commit 1d54aa2

Browse files
author
Jinsong Ji
committed
[CSSPGO][Test] XFAIL profile-context-tracker-debug.ll on AIX
The case start to fail since https://reviews.llvm.org/D99351. Looks like to me that the node order within Context Profile Tree depends on the implmementation of std::hash<std::string>. Unfortunately, the current clang implementation generate different values on AIX (or for all big-endian systems?) On Linux: main: 2408804140(0x8f936f2c) external: 896680882(0x357243b2) externalA: 620231129(0x24f7f9d9) On AIX: main: 994322777(0x3b442959) external: 3548191215(0xd37d19ef) externalA: 1390365101(0x52df49ad) XFAIL it first while we discuss and seek for a fix. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D99815
1 parent d302e33 commit 1d54aa2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/test/Transforms/SampleProfile/profile-context-tracker-debug.ll

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
; Test for CSSPGO's SampleContextTracker to make sure context profile tree is promoted and merged properly
33
; based on inline decision, so post inline counts are accurate.
44

5+
;; The order of nodes within Context Profile Tree depends on the implmementation of std::hash<std::string>.
6+
;; Mark it fail on AIX for now before we figure out a solution.
7+
; XFAIL: aix
8+
9+
510
; Note that we need new pass manager to enable top-down processing for sample profile loader
611
; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size -sample-profile-cold-inline-threshold=200 -debug-only=sample-context-tracker -o /dev/null 2>&1 | FileCheck %s --check-prefix=INLINE-ALL
712
; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-prioritized-inline=0 -sample-profile-inline-size=0 -debug-only=sample-context-tracker -o /dev/null 2>&1 | FileCheck %s --check-prefix=INLINE-HOT

0 commit comments

Comments
 (0)