mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Redirect DataLayout from TargetMachine to Module in SelectionDAG
Summary: SelectionDAG itself is not invoking directly the DataLayout in the TargetMachine, but the "TargetLowering" class is still using it. I'll address it in a following commit. This change is part of a series of commits dedicated to have a single DataLayout during compilation by using always the one owned by the module. Reviewers: echristo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11000 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -803,7 +803,7 @@ SDValue VectorLegalizer::ExpandANY_EXTEND_VECTOR_INREG(SDValue Op) {
|
||||
|
||||
// Place the extended lanes into the correct locations.
|
||||
int ExtLaneScale = NumSrcElements / NumElements;
|
||||
int EndianOffset = TLI.isBigEndian() ? ExtLaneScale - 1 : 0;
|
||||
int EndianOffset = DAG.getDataLayout().isBigEndian() ? ExtLaneScale - 1 : 0;
|
||||
for (int i = 0; i < NumElements; ++i)
|
||||
ShuffleMask[i * ExtLaneScale + EndianOffset] = i;
|
||||
|
||||
@@ -858,7 +858,7 @@ SDValue VectorLegalizer::ExpandZERO_EXTEND_VECTOR_INREG(SDValue Op) {
|
||||
ShuffleMask.push_back(i);
|
||||
|
||||
int ExtLaneScale = NumSrcElements / NumElements;
|
||||
int EndianOffset = TLI.isBigEndian() ? ExtLaneScale - 1 : 0;
|
||||
int EndianOffset = DAG.getDataLayout().isBigEndian() ? ExtLaneScale - 1 : 0;
|
||||
for (int i = 0; i < NumElements; ++i)
|
||||
ShuffleMask[i * ExtLaneScale + EndianOffset] = NumSrcElements + i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user