Skip to content

Commit a3fe7c4

Browse files
committed
rebasing
1 parent 282a7be commit a3fe7c4

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

llvm/lib/Target/X86/X86FastISel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3544,7 +3544,9 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
35443544

35453545
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, MIMD, TII.get(CallOpc));
35463546
if (NeedLoad)
3547-
MIB.addReg(Is64Bit ? X86::RIP : 0).addImm(1).addReg(0);
3547+
MIB.addReg(Is64Bit ? static_cast<unsigned>(X86::RIP) : 0U)
3548+
.addImm(1)
3549+
.addReg(0);
35483550
if (Symbol)
35493551
MIB.addSym(Symbol, OpFlags);
35503552
else

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29984,14 +29984,9 @@ static SDValue LowerShift(SDValue Op, const X86Subtarget &Subtarget,
2998429984
MVT::getVectorVT(NarrowScalarVT, WideNumElts), dl, AmtWideElts);
2998529985
AmtWide = DAG.getZExtOrTrunc(AmtWide, dl, WideVT);
2998629986
// Perform the actual shift.
29987-
<<<<<<< HEAD
29988-
unsigned LogicalOpc = Opc == ISD::SRA ? ISD::SRL : Opc;
29989-
SDValue ShiftedR = DAG.getNode(LogicalOpc, dl, WideVT, RWide, AmtWide);
29990-
=======
2999129987
unsigned LogicalOpc =
2999229988
Opc == ISD::SRA ? static_cast<unsigned>(ISD::SRL) : Opc;
29993-
SDValue ShiftedR = DAG.getNode(LogicalOpc, dl, VT16, R16, Amt16);
29994-
>>>>>>> ae2283c2c014 (static_cast)
29989+
SDValue ShiftedR = DAG.getNode(LogicalOpc, dl, WideVT, RWide, AmtWide);
2999529990
// Now we need to construct a mask which will "drop" bits that get
2999629991
// shifted past the LSB/MSB. For a logical shift left, it will look
2999729992
// like:

mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -840,13 +840,13 @@ enum VectorMemoryAccessKind { ScalarBroadcast, Contiguous, Gather };
840840
/// TODO: Statically shaped loops + vector masking
841841
static uint64_t getTrailingNonUnitLoopDimIdx(LinalgOp linalgOp) {
842842
SmallVector<int64_t> loopRanges = linalgOp.getStaticLoopRanges();
843-
assert(linalgOp.hasDynamicShape() ||
844-
llvm::count_if(loopRanges, [](int64_t dim) { return dim != 1; }) ==
845-
1 &&
846-
"For statically shaped Linalg Ops, only one "
847-
"non-unit loop dim is expected");
843+
assert(
844+
(linalgOp.hasDynamicShape() ||
845+
llvm::count_if(loopRanges, [](int64_t dim) { return dim != 1; }) == 1) &&
846+
"For statically shaped Linalg Ops, only one "
847+
"non-unit loop dim is expected");
848848

849-
size_t idx = loopRanges.size() - 1;
849+
ssize_t idx = loopRanges.size() - 1;
850850
for (; idx >= 0; idx--)
851851
if (loopRanges[idx] != 1)
852852
break;

mlir/lib/Dialect/Tensor/Utils/Utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ PadOp mlir::tensor::createPadHighOp(RankedTensorType resType, Value source,
2727
OpBuilder &b,
2828
SmallVector<Value> dynOutDims) {
2929

30-
assert((resType.getNumDynamicDims() == dynOutDims.size()) ||
31-
dynOutDims.empty() &&
32-
"Either none or all output dynamic dims must be specified!");
30+
assert((resType.getNumDynamicDims() == dynOutDims.size() ||
31+
dynOutDims.empty()) &&
32+
"Either none or all output dynamic dims must be specified!");
3333

3434
// Init "low" and "high" padding values ("low" is kept as is, "high" is
3535
// computed below).

0 commit comments

Comments
 (0)