[PATCH] D85148: Fix ARM build bots failures due to disabled x86_64-apple target

James Nagurne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 12:08:52 PDT 2020


JamesNagurne created this revision.
JamesNagurne added reviewers: vsk, tejohnson, hiraditya.
Herald added subscribers: llvm-commits, danielkiss, kristof.beyls.
Herald added a project: LLVM.
JamesNagurne requested review of this revision.

  Revision D69384 added the option "-codegenprepare" to an invocation of
  opt, which then requires LLVM to have the expected target available for
  code generation.
  
  The ARM build bots do not compile this target as part of their build,
  causing this test to abort:
  
  "Trying to construct TargetPassConfig without a target machine.
  Scheduling a CodeGen pass without a target triple set?"
  
  This change skips the test as unsupported if the x86-apple target is not
  available.


https://reviews.llvm.org/D85148

Files:
  llvm/test/Transforms/HotColdSplit/coldentrycount.ll


Index: llvm/test/Transforms/HotColdSplit/coldentrycount.ll
===================================================================
--- llvm/test/Transforms/HotColdSplit/coldentrycount.ll
+++ llvm/test/Transforms/HotColdSplit/coldentrycount.ll
@@ -1,6 +1,7 @@
 ; Test to ensure that split cold function gets 0 entry count profile
 ; metadata when compiling with pgo.
 
+; REQUIRES: x86_64-apple
 ; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -codegenprepare -S < %s | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85148.282696.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/1d83597b/attachment.bin>


More information about the llvm-commits mailing list