mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Revert r137562 because it caused PR10674
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a817eae6c
commit
6d1f5d951b
@ -928,13 +928,6 @@ SDValue SelectionDAG::getConstant(const ConstantInt &Val, EVT VT, bool isT) {
|
||||
assert(Val.getBitWidth() == EltVT.getSizeInBits() &&
|
||||
"APInt size does not match type size!");
|
||||
|
||||
// In some cases the vector type is legal but the element type is illegal.
|
||||
// In this case, promote the inserted value. The type does not need to match
|
||||
// the vector element type. Any extra bits introduced will be
|
||||
// truncated away.
|
||||
if (VT.isVector())
|
||||
EltVT = TLI.getTypeToTransformTo(*getContext(), EltVT);
|
||||
|
||||
unsigned Opc = isT ? ISD::TargetConstant : ISD::Constant;
|
||||
FoldingSetNodeID ID;
|
||||
AddNodeIDNode(ID, Opc, getVTList(EltVT), 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user