[all-commits] [llvm/llvm-project] b3913a: [GlobalISel] Do not crash on widening vector result
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Fri Sep 30 07:32:09 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3913a9cdf49102589e7dd31ff979bfaf958a720
https://github.com/llvm/llvm-project/commit/b3913a9cdf49102589e7dd31ff979bfaf958a720
Author: Serge Pavlov <sepavloff at gmail.com>
Date: 2022-09-30 (Fri, 30 Sep 2022)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
M llvm/test/CodeGen/X86/GlobalISel/x86_64-irtranslator.ll
Log Message:
-----------
[GlobalISel] Do not crash on widening vector result
Function buildCopyToRegs did not handle properly the case when it should
make wider vector result. It happened, for example, in a function that
returns value of type <2 x f32>, which should be widen to <4 x f32> to
fit XMM register. The function eventually calls
MachineIRBuilder.buildUnmerge, which does not expect that only one
destination register is specified.
Now this case is treated specifically in buildCopyToRegs.
Differential Revision: https://reviews.llvm.org/D128546
More information about the All-commits
mailing list