[all-commits] [llvm/llvm-project] 19860c: [Win][X86]Fix issue where _fltused reference is in...

Adam Glass via All-commits all-commits at lists.llvm.org
Mon Jul 7 09:32:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19860ce3c99c0365ca8c2a8b39eebe3f306556d0
      https://github.com/llvm/llvm-project/commit/19860ce3c99c0365ca8c2a8b39eebe3f306556d0
  Author: Adam Glass <adamglass at microsoft.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86AsmPrinter.cpp
    A llvm/test/CodeGen/X86/fltused_vec.ll

  Log Message:
  -----------
  [Win][X86]Fix issue where _fltused reference is incorrectly issued for vector floating point operations (#146792)

Fixes #146428 _fltused reference generated for vector floating point
operations

Currently references to _fltused are incorrectly emitted due to the
presence of vector floating point operations. This causes spurious
references to _fltused in vector floating point system code where the
CRT is not used. This issue is limited to the X86 MSVC environment.

As described in the bug:
* _fltused should only be emitted for floating point operations as the
reference is used to initialize some parts of FP CRT support.
* Vector floating point operations on their own don't require that CRT
support.

Have confirmed intended behavior with MSVC team.

Fix alters usesMSVCFloatingPoint() to look for floating point
instructions/operands rather than floating point or vector floating
point.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list