llvm-project
e963d074 - [AMDGPU] Replace `isInlinableLiteral16` with specific version (#84402)

Commit
1 year ago
[AMDGPU] Replace `isInlinableLiteral16` with specific version (#84402) The current implementation of `isInlinableLiteral16` assumes, a 16-bit inlinable literal is either an `i16` or a `fp16`. This is not always true because of `bf16`. However, we can't tell `fp16` and `bf16` apart by just looking at the value. This patch splits `isInlinableLiteral16` into three versions, `i16`, `fp16`, `bf16` respectively, and call the corresponding version.
Author
Parents
Loading