Skip to content

Commit de94495

Browse files
committed
Skip big endian for now
1 parent f90a706 commit de94495

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,8 @@ SDValue DAGTypeLegalizer::PromoteIntOp_BITCAST(SDNode *N) {
22122212

22132213
switch (getTypeAction(InVT)) {
22142214
case TargetLowering::TypePromoteInteger: {
2215-
if (OutVT.isVector()) {
2215+
// TODO: Handle big endian
2216+
if (OutVT.isVector() && DAG.getDataLayout().isLittleEndian()) {
22162217
EVT EltVT = OutVT.getVectorElementType();
22172218
TypeSize EltSize = EltVT.getSizeInBits();
22182219
TypeSize NInSize = NInVT.getSizeInBits();

0 commit comments

Comments
 (0)