Skip to content

[X86] X86TTIImpl::instCombineIntrinsic - attempt to use llvm::computeKnownFPClass to generalise SSE/AVX FP scalar MAX/MIN intrinsics #175162

@RKSimon

Description

@RKSimon

Followup to #173270, with suitable DemandedElts masks we can handle the scalar intrinsics:

x86_sse_max_ss
x86_sse_min_ss
x86_sse2_max_sd
x86_sse2_min_sd

However, these will require special expansion to 2*extractelement/maxnum/insertelement as only the lowest element is actually called and the upper elements are passed through from the first operand:
https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_ss&ig_expand=4391,4391

Metadata

Metadata

Assignees

Labels

backend:X86good first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions