llvm/llvm-project

[NVPTX] Implement `TLI.isTruncateFree(EVT, EVT)` and `TLI.isZExtFree()`

Open

#114.339 aperta il 31 ott 2024

Vedi su GitHub
 (11 commenti) (0 reazioni) (2 assegnatari)C++ (10.782 fork)batch import
backend:NVPTXgood first issue

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

NVPTX currently does not override TLI.isTruncateFree(EVT, EVT) and TLI.isZExtFree(), and it probably should.

zext/truncate between i32/i64 can probably be considered free, as the values already live in separate 32-bit registers in hardware.

Originally posted by @Artem-B in https://github.com/llvm/llvm-project/pull/98666#discussion_r1681805956

Guida contributor