[all-commits] [llvm/llvm-project] 8a0073: [CostModel][X86] Treat lrint/llrint as fptosi call...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri May 3 10:07:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a0073ad4658033b6a4f6bae4fbaf924ac813bc6
      https://github.com/llvm/llvm-project/commit/8a0073ad4658033b6a4f6bae4fbaf924ac813bc6
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-05-03 (Fri, 03 May 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/arith-fp-codesize.ll
    M llvm/test/Analysis/CostModel/X86/arith-fp-latency.ll
    M llvm/test/Analysis/CostModel/X86/arith-fp-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/arith-fp.ll
    M llvm/test/Transforms/SLPVectorizer/X86/arith-fp-call.ll

  Log Message:
  -----------
  [CostModel][X86] Treat lrint/llrint as fptosi calls (#90883)

X86 can use the CVTP2SI instructions to lower lrint/llrint calls, which have the same costs as the CVTTP2SI (fptosi) instructions

Followup to #90065



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