diff options
author | Alex Bradbury <asb@igalia.com> | 2023-08-09 11:01:28 +0100 |
---|---|---|
committer | Alex Bradbury <asb@igalia.com> | 2023-08-09 11:01:28 +0100 |
commit | 89b8ebf3d68cbecf9e8c889362c793ad4015169a (patch) | |
tree | 1bdccfaf0810545df477c31cc72e1cfb66d58a81 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b160442dd2ca610d3cfc2085d6f6fa4efdf94ca5 (diff) | |
download | llvm-89b8ebf3d68cbecf9e8c889362c793ad4015169a.zip llvm-89b8ebf3d68cbecf9e8c889362c793ad4015169a.tar.gz llvm-89b8ebf3d68cbecf9e8c889362c793ad4015169a.tar.bz2 |
[LegalizeTypes][RISCV] Correct FP_TO_{S,U}INT expansion when bf16 isn't a legal type
As noted in D156990, the logic in ExpandIntRes_FP_TO_SINT assumes that
if the type action for the float type is TypeSoftPromoteHalf, is must
have been an f16 (half). However, the meaning of that type action has
been overloaded and it is used for both f16 and bf16. This patch adds an
appropriate check to ensure ISD::FP16_TO_FP or ISD::BF16_TO_FP is
emitted as required.
Differential Revision: https://reviews.llvm.org/D157287
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions