diff options
author | Lucas Prates <lucas.prates@arm.com> | 2020-06-25 15:01:02 +0100 |
---|---|---|
committer | Lucas Prates <lucas.prates@arm.com> | 2020-07-09 09:46:17 +0100 |
commit | fc39a9ca0ef4f7b07c485e0d3c61ec0776f7a38c (patch) | |
tree | 48d646b1238820f6efd6355dbad8819c078ebdde /llvm/lib/Transforms/Utils/PredicateInfo.cpp | |
parent | e59e39b7c4092ead733d25e7801429fd9dab7007 (diff) | |
download | llvm-fc39a9ca0ef4f7b07c485e0d3c61ec0776f7a38c.zip llvm-fc39a9ca0ef4f7b07c485e0d3c61ec0776f7a38c.tar.gz llvm-fc39a9ca0ef4f7b07c485e0d3c61ec0776f7a38c.tar.bz2 |
[CodeGen] Matching promoted type for 16-bit integer bitcasts from fp16 operand
Summary:
When legalizing a biscast operation from an fp16 operand to an i16 on a
target that requires both input and output types to be promoted to
32-bits, an assertion can fail when building the new node due to a
mismatch between the the operation's result size and the type specified to
the node.
This patches fix the issue by making sure the bit width of the types
match for the FP_TO_FP16 node, covering the difference with an extra
ANYEXTEND operation.
Reviewers: ostannard, efriedma, pirama, jmolloy, plotfi
Reviewed By: efriedma
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D82552
Diffstat (limited to 'llvm/lib/Transforms/Utils/PredicateInfo.cpp')
0 files changed, 0 insertions, 0 deletions