[llvm] [compiler-rt] [test] Restrict thinlto icp IR test to little endian systems, and the compiler-rt test to three tested platforms. (PR #76001)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 19:53:46 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Mingming Liu (minglotus-6)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/76001.diff
2 Files Affected:
- (modified) compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp (+2-2)
- (modified) llvm/test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll (+1-2)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/76001
More information about the llvm-commits
mailing list