[llvm] [PGO] Add missing target datalayout in test (PR #169520)

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 08:42:15 PST 2025


https://github.com/jdenny-ornl created https://github.com/llvm/llvm-project/pull/169520

The test was added by b8ef25aa643761233dc5b74d9fb7c38a2064d9c7.  It failed on at least the following bots, but the failure did not reproduce on my test machines or in pre-commit CI:

- https://lab.llvm.org/buildbot/#/builders/190/builds/31638
- https://lab.llvm.org/buildbot/#/builders/190/builds/31638

This fix hopefully addresses at least the warnings there.

>From 9a7b1cdf34fddc84dfc3b28df720e3ed2a1ffee6 Mon Sep 17 00:00:00 2001
From: "Joel E. Denny" <jdenny.ornl at gmail.com>
Date: Tue, 25 Nov 2025 11:37:01 -0500
Subject: [PATCH] [PGO] Add missing target datalayout in test

The test was added by b8ef25aa643761233dc5b74d9fb7c38a2064d9c7.  It
failed on at least the following bots, but the failure did not
reproduce on my test machines or in pre-commit CI:

- https://lab.llvm.org/buildbot/#/builders/190/builds/31638
- https://lab.llvm.org/buildbot/#/builders/190/builds/31638

This fix hopefully addresses at least the warnings there.
---
 .../LoopVectorize/vectorize-zero-estimated-trip-count.ll         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/test/Transforms/LoopVectorize/vectorize-zero-estimated-trip-count.ll b/llvm/test/Transforms/LoopVectorize/vectorize-zero-estimated-trip-count.ll
index 436324b4bab7a..c91a764681d20 100644
--- a/llvm/test/Transforms/LoopVectorize/vectorize-zero-estimated-trip-count.ll
+++ b/llvm/test/Transforms/LoopVectorize/vectorize-zero-estimated-trip-count.ll
@@ -4,6 +4,7 @@
 
 ; RUN: opt -passes=loop-vectorize -S %s | FileCheck %s
 
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 
 ; Look for basic signs that vectorization ran and produced memory checks.



More information about the llvm-commits mailing list