We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2f59a commit 3e7564bCopy full SHA for 3e7564b
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -15495,8 +15495,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
15495
unsigned BuildVecNumElts = BuildVect.getNumOperands();
15496
unsigned TruncVecNumElts = VT.getVectorNumElements();
15497
unsigned TruncEltOffset = BuildVecNumElts / TruncVecNumElts;
15498
- unsigned FirstElt =
15499
- DAG.getDataLayout().isBigEndian() ? (TruncEltOffset - 1) : 0;
+ unsigned FirstElt = isLE ? 0 : (TruncEltOffset - 1);
15500
15501
assert((BuildVecNumElts % TruncVecNumElts) == 0 &&
15502
"Invalid number of elements");
0 commit comments