diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-07-07 23:25:23 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-07-07 23:25:23 +0000 |
commit | 2620b877b6299e04767718358d6e1eb66b18cb49 (patch) | |
tree | bb621c48a96bd87f0041d9174933c0553f8da29b /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5c53298c1eca22b512c43b2cf02e5e9f05c136a1 (diff) | |
download | bcm5719-llvm-2620b877b6299e04767718358d6e1eb66b18cb49.tar.gz bcm5719-llvm-2620b877b6299e04767718358d6e1eb66b18cb49.zip |
[x86] Fix assertion failure caused by a wrong combine of PSHUFD nodes with different types.
When combining a sequence of two PSHUFD dag nodes into a single PSHUFD,
make sure that we assign the correct type to the resulting PSHUFD.
X86ISD::PSHUFD dag nodes can be either MVT::v4i32 or MVT::v4f32.
Before this change, an assertion failure was triggered in method
'DAGCombinerInfo::CombineTo' when trying to combine the shuffles from the test
below into a single PSHUFD.
define <4 x float> @test1(<4 x float> %V) {
%1 = shufflevector <4 x float> %V, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 2, i32 1>
%2 = shufflevector <4 x float> %1, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 2, i32 1>
ret <4 x float> %2
}
llvm-svn: 212498
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions