[llvm] [compiler-rt] Restrict thinlto icp IR test to little endian systems, and the compiler-rt test to three tested platforms. (PR #76001)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 19:50:21 PST 2023


https://github.com/minglotus-6 created https://github.com/llvm/llvm-project/pull/76001

None

>From b441021c99570733244aa89a9968793a79783e24 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
Date: Tue, 19 Dec 2023 19:42:44 -0800
Subject: [PATCH] Restrict thinlto icp IR test to little endian systems, and
 the compiler-rt test to three tested platforms.

---
 .../profile/instrprof-thinlto-indirect-call-promotion.cpp     | 4 ++--
 .../Transforms/PGOProfile/thinlto_indirect_call_promotion.ll  | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp b/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp
index a8644bdb26ea64..08efa42167e94d 100644
--- a/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp
+++ b/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp
@@ -13,6 +13,8 @@
 // - Generate ThinLTO summary file with LLVM bitcodes, and run `function-import` pass.
 // - Run `pgo-icall-prom` pass for the IR module which needs to import callees.
 
+// REQUIRES: windows || linux || darwin
+
 // This test and IR test llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll
 // are complementary to each other; a compiler-rt test has better test coverage
 // on different platforms, and the IR test is less restrictive in terms of
@@ -35,8 +37,6 @@
 // specifies OS as Triple::OS::Win32
 //
 // UNSUPPORTED: target={{i.86.*windows.*}}
-// FIXME: Re-enable the test on powerpc.
-// UNSUPPORTED: powerpc-registered-target
 
 // RUN: rm -rf %t && split-file %s %t && cd %t
 
diff --git a/llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll b/llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll
index 8ed989a85b1ee9..129788bf75d8d8 100644
--- a/llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll
+++ b/llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll
@@ -9,8 +9,7 @@
 ; The raw profiles storesd compressed function names, so profile reader should
 ; be built with zlib support to decompress them.
 ; REQUIRES: zlib
-; FIXME: Re-enable the test on powerpc.
-; UNSUPPORTED: powerpc-registered-target
+; REQUIRES: host-byteorder-little-endian
 
 ; RUN: rm -rf %t && split-file %s %t && cd %t
 



More information about the llvm-commits mailing list