llvm-project
c13436e5 - [SDAG][NVPTX] Add TLI hook to get preferred FP->INT opcode (#132470)

Commit
213 days ago
[SDAG][NVPTX] Add TLI hook to get preferred FP->INT opcode (#132470) Extract the logic for choosing FP_TO_UINT vs FP_TO_SINT opcodes into a TLI hook. This hook can be overridden by targets that prefer not to use the default behavior of replacing FP_TO_UINT with FP_TO_SINT when both are custom. Implement an override for NVPTX to only change opcode when FP_TO_UINT is not legal and FP_TO_SINT is legal.
Author
Parents
Loading