[all-commits] [llvm/llvm-project] cee415: [LLVM][X86] Add native ct.select support for X86 a...
Julius Alexandre via All-commits
all-commits at lists.llvm.org
Thu Nov 6 09:29:07 PST 2025
Branch: refs/heads/users/wizardengineer/ct-select-x86
Home: https://github.com/llvm/llvm-project
Commit: cee41562976955a1e4c7b911a304b989a73be16d
https://github.com/llvm/llvm-project/commit/cee41562976955a1e4c7b911a304b989a73be16d
Author: wizardengineer <juliuswoosebert at gmail.com>
Date: 2025-11-06 (Thu, 06 Nov 2025)
Changed paths:
M llvm/lib/Target/X86/X86.td
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/lib/Target/X86/X86ISelLowering.h
M llvm/lib/Target/X86/X86InstrCMovSetCC.td
M llvm/lib/Target/X86/X86InstrCompiler.td
M llvm/lib/Target/X86/X86InstrFragments.td
M llvm/lib/Target/X86/X86InstrInfo.cpp
M llvm/lib/Target/X86/X86InstrInfo.h
M llvm/lib/Target/X86/X86InstrPredicates.td
M llvm/lib/Target/X86/X86TargetMachine.cpp
A llvm/test/CodeGen/X86/ctselect-edge-cases.ll
A llvm/test/CodeGen/X86/ctselect-i386-fp.ll
A llvm/test/CodeGen/X86/ctselect-i386-mmx.ll
A llvm/test/CodeGen/X86/ctselect-i386.ll
A llvm/test/CodeGen/X86/ctselect-optimization.ll
A llvm/test/CodeGen/X86/ctselect-vector.ll
M llvm/test/CodeGen/X86/ctselect.ll
Log Message:
-----------
[LLVM][X86] Add native ct.select support for X86 and i386
Add native X86 implementation with CMOV instructions and comprehensive tests:
- X86 ISelLowering with CMOV for x86_64 and i386
- Fallback bitwise operations for i386 targets without CMOV
- Post-RA expansion for pseudo-instructions
- Comprehensive test coverage:
- Edge cases (zero conditions, large integers)
- i386-specific tests (FP, MMX, non-CMOV fallback)
- Vector operations
- Optimization patterns
The basic test demonstrating fallback is in the core infrastructure PR.
Commit: d0a67b041f35d4a1df0d4f725957fe995908a48c
https://github.com/llvm/llvm-project/commit/d0a67b041f35d4a1df0d4f725957fe995908a48c
Author: wizardengineer <juliuswoosebert at gmail.com>
Date: 2025-11-06 (Thu, 06 Nov 2025)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/ctselect-i386-fp.ll
Log Message:
-----------
[LLVM][X86] Add f80 support for ct.select
Add special handling for x86_fp80 types in CTSELECT lowering by splitting
them into three 32-bit chunks, performing constant-time selection on each
chunk, and reassembling the result. This fixes crashes when compiling
tests with f80 types.
Also updated ctselect.ll to match current generic fallback implementation.
Compare: https://github.com/llvm/llvm-project/compare/1e1460dfa2e8...d0a67b041f35
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