OSDN Git Service

[X86] In lowerVectorShuffleAsBroadcast, make peeking through CONCAT_VECTORS work...
authorCraig Topper <craig.topper@intel.com>
Tue, 30 Oct 2018 18:48:42 +0000 (18:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 30 Oct 2018 18:48:42 +0000 (18:48 +0000)
commit528c13b2d370d87a5debc5cb086f8021897da6cb
treef5e3f44385a4e1aee9febc412e1b9e02e945d3ca
parent14842a4c81b75cc8aef8364867d888e0c71cc089
[X86] In lowerVectorShuffleAsBroadcast, make peeking through CONCAT_VECTORS work correctly if we already walked through a bitcast that changed the element size.

The CONCAT_VECTORS case was using the original mask element count to determine how to adjust the broadcast index. But if we looked through a bitcast the original mask size doesn't tell us anything about the concat_vectors.

This patch switchs to using the concat_vectors input element count directly instead.

Differential Revision: https://reviews.llvm.org/D53823

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345626 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-256-v8.ll