[PATCH] D139549: [X86][ConstraintFP] Model `MXCSR` for function call

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 08:56:57 PST 2022


pengfei created this revision.
pengfei added reviewers: andrew.w.kaylor, craig.topper, RKSimon, sepavloff.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
pengfei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch is inspired by D111433 <https://reviews.llvm.org/D111433>. It would affect the performance under
strict FP mode. But it preserves the correct rounding behavior accross
function calls.

Fixes #59305


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139549

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/X86/fp-strict-scalar-inttofp-fp16.ll
  llvm/test/CodeGen/X86/pr59305.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139549.480938.patch
Type: text/x-patch
Size: 5394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221207/aa0864fe/attachment.bin>


More information about the llvm-commits mailing list