[all-commits] [llvm/llvm-project] fc39a9: [CodeGen] Matching promoted type for 16-bit intege...
Lucas Duarte Prates via All-commits
all-commits at lists.llvm.org
Thu Jul 9 01:46:41 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fc39a9ca0ef4f7b07c485e0d3c61ec0776f7a38c
https://github.com/llvm/llvm-project/commit/fc39a9ca0ef4f7b07c485e0d3c61ec0776f7a38c
Author: Lucas Prates <lucas.prates at arm.com>
Date: 2020-07-09 (Thu, 09 Jul 2020)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
A llvm/test/CodeGen/ARM/arm-half-promote.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list