[llvm] [CalcSpillWeights] Avoid x87 excess precision influencing weight result (PR #100165)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 10:45:59 PDT 2024
================
@@ -0,0 +1,59 @@
+; RUN: llc < %s -mtriple=i386-unknown-freebsd -enable-misched -relocation-model=pic | FileCheck %s
+
+target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128"
+target triple = "i386-unknown-freebsd15.0"
+
+ at c = external local_unnamed_addr global ptr
+
+declare i32 @fn2() local_unnamed_addr
+
+declare i32 @fn3() local_unnamed_addr
+
+define noundef i32 @fn4() #0 {
+entry:
+ %0 = load i32, ptr @fn4, align 4
+; CHECK: movl fn4 at GOT(%ebx), %edi
+; CHECK-NEXT: movl (%edi), %edx
+ %1 = load ptr, ptr @c, align 4
----------------
arsenm wrote:
%0 should be %load or some other name etc.
https://github.com/llvm/llvm-project/pull/100165
More information about the llvm-commits
mailing list