Skip to content

Commit 33afa94

Browse files
authored
Merge branch 'main' into mlir-scf2gpu-affineapply-crash
2 parents f5fbbba + dd9bd3e commit 33afa94

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

libcxx/utils/ci/docker/linux-builder-base.dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ RUN sudo apt-get update \
7070
libxml2-dev \
7171
lsb-release \
7272
make \
73+
ninja-build \
7374
python3 \
7475
python3-dev \
7576
python3-packaging \
@@ -83,14 +84,6 @@ RUN sudo apt-get update \
8384
xz-utils \
8485
&& sudo rm -rf /var/lib/apt/lists/*
8586

86-
RUN <<EOF
87-
set -e
88-
wget -qO /tmp/ninja.gz https://github.com/ninja-build/ninja/releases/latest/download/ninja-linux.zip
89-
gunzip /tmp/ninja.gz
90-
chmod a+x /tmp/ninja
91-
sudo mv /tmp/ninja /usr/local/bin/ninja
92-
EOF
93-
9487
# These two locales are not enabled by default so generate them
9588
RUN <<EOF
9689
set -e

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25465,7 +25465,7 @@ static SDValue combineConcatVectorOfScalars(SDNode *N, SelectionDAG &DAG) {
2546525465
!Op.getOperand(0).getValueType().isVector())
2546625466
Ops.push_back(Op.getOperand(0));
2546725467
else if (Op.isUndef())
25468-
Ops.push_back(DAG.getNode(ISD::UNDEF, DL, SVT));
25468+
Ops.push_back(DAG.getNode(Op.getOpcode(), DL, SVT));
2546925469
else
2547025470
return SDValue();
2547125471

@@ -25487,7 +25487,7 @@ static SDValue combineConcatVectorOfScalars(SDNode *N, SelectionDAG &DAG) {
2548725487
if (Op.getValueType() == SVT)
2548825488
continue;
2548925489
if (Op.isUndef())
25490-
Op = DAG.getNode(ISD::UNDEF, DL, SVT);
25490+
Op = DAG.getNode(Op.getOpcode(), DL, SVT);
2549125491
else
2549225492
Op = DAG.getBitcast(SVT, Op);
2549325493
}

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21640,9 +21640,8 @@ static SDValue performBuildVectorCombine(SDNode *N,
2164021640
SDValue LowLanesSrcVec = Elt0->getOperand(0)->getOperand(0);
2164121641
if (LowLanesSrcVec.getValueType() == MVT::v2f64) {
2164221642
SDValue HighLanes;
21643-
if (Elt2->getOpcode() == ISD::UNDEF &&
21644-
Elt3->getOpcode() == ISD::UNDEF) {
21645-
HighLanes = DAG.getUNDEF(MVT::v2f32);
21643+
if (Elt2->isUndef() && Elt3->isUndef()) {
21644+
HighLanes = DAG.getPOISON(MVT::v2f32);
2164621645
} else if (Elt2->getOpcode() == ISD::FP_ROUND &&
2164721646
Elt3->getOpcode() == ISD::FP_ROUND &&
2164821647
isa<ConstantSDNode>(Elt2->getOperand(1)) &&
@@ -23977,7 +23976,7 @@ static SDValue performUzpCombine(SDNode *N, SelectionDAG &DAG,
2397723976
return SDValue();
2397823977

2397923978
// uzp1(x, undef) -> concat(truncate(x), undef)
23980-
if (Op1.getOpcode() == ISD::UNDEF) {
23979+
if (Op1.isUndef()) {
2398123980
EVT BCVT = MVT::Other, HalfVT = MVT::Other;
2398223981
switch (ResVT.getSimpleVT().SimpleTy) {
2398323982
default:
@@ -26423,8 +26422,7 @@ performSetccMergeZeroCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI) {
2642326422
SDValue L1 = LHS->getOperand(1);
2642426423
SDValue L2 = LHS->getOperand(2);
2642526424

26426-
if (L0.getOpcode() == ISD::UNDEF && isNullConstant(L2) &&
26427-
isSignExtInReg(L1)) {
26425+
if (L0.isUndef() && isNullConstant(L2) && isSignExtInReg(L1)) {
2642826426
SDLoc DL(N);
2642926427
SDValue Shl = L1.getOperand(0);
2643026428
SDValue NewLHS = DAG.getNode(ISD::INSERT_SUBVECTOR, DL,

0 commit comments

Comments
 (0)