diff options
| author | Henry Yu <hazyfish@outlook.com> | 2022-11-03 15:30:38 -0700 |
|---|---|---|
| committer | Peter Rong <PeterRong96@gmail.com> | 2022-11-03 15:35:13 -0700 |
| commit | ef0d689e8be2ac22b2e2da477217c761354c0ff9 (patch) | |
| tree | 6ae2e6512b1fe4dc577a909d691501b78e4c6e11 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 348189880b7bc9513ccdd0ea3a1e255b4d3190e7 (diff) | |
[SelectionDAGBuilder] use bitcast instead of AnyExtOrTrunc if copy parts from an int vector to a float vector to fix issue #58615
The getCopyFromPartsVector doesn't work correctly when PartEVT and ValueVT have both different element type and different size.
This patch
1) removes the part of a comment that contains the incorrect assumption that element type are the same
2) use bitcast when copy parts of int vector to a float vector after the subvector extraction
Reviewed By: Peter, efriedma
Differential Revision: https://reviews.llvm.org/D136726
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
