[all-commits] [llvm/llvm-project] f3481f: [X86] Only force FP usage in the presence of pushf...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Wed Feb 9 18:23:28 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3481f43bbe2c8a24e74210d310cf3be291bf52d
  Author: Reid Kleckner <rnk at google.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86FrameLowering.cpp
    M llvm/test/CodeGen/X86/x86-64-flags-intrinsics.ll
    M llvm/test/CodeGen/X86/x86-flags-intrinsics.ll

  Log Message:
  [X86] Only force FP usage in the presence of pushf/popf on Win64

This ensures that the Windows unwinder will work at every instruction
boundary, and allows other targets to read and write flags without
setting up a frame pointer.

Fixes GH-46875

Differential Revision: https://reviews.llvm.org/D119391

More information about the All-commits mailing list