[vector-select] Address one of the issues in pr10902. EXTRACT_VECTOR_ELEMENT
authorNadav Rotem <nadav.rotem@intel.com>
Sun, 25 Sep 2011 18:59:42 +0000 (18:59 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sun, 25 Sep 2011 18:59:42 +0000 (18:59 +0000)
commit0eba4fe292a0bb343da5fb2667850a39459cef0b
treed81babb208248631db959d4b091eaf4c756091b6
parent74e2d6ea66a9289fc3c00583f3c2b2abd84e1866
[vector-select] Address one of the issues in pr10902. EXTRACT_VECTOR_ELEMENT
SDNodes may return values which are wider than the incoming element types. In
this patch we fix the integer promotion of these nodes.

Fixes spill-q.ll when running -promote-elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp