Skip to content

Commit db65c6f

Browse files
committed
Merge remote-tracking branch 'origin/main' into vplan-replace-rdxdesc-with-recurkind
2 parents cb4b75d + c35fbb5 commit db65c6f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,12 +2009,12 @@ void X86MCCodeEmitter::encodeInstruction(const MCInst &MI,
20092009
// (SSE4a extrq and insertq) have two trailing immediates.
20102010

20112011
// Skip two trainling conditional operands encoded in EVEX prefix
2012-
unsigned RemaningOps = NumOps - CurOp - 2 * HasTwoConditionalOps;
2013-
while (RemaningOps) {
2012+
unsigned RemainingOps = NumOps - CurOp - 2 * HasTwoConditionalOps;
2013+
while (RemainingOps) {
20142014
emitImmediate(MI.getOperand(CurOp++), MI.getLoc(),
2015-
getImmFixupKind(TSFlags), X86II::isImmPCRel(TSFlags),
2016-
StartByte, CB, Fixups);
2017-
--RemaningOps;
2015+
getImmFixupKind(Desc.TSFlags),
2016+
X86II::isImmPCRel(Desc.TSFlags), StartByte, CB, Fixups);
2017+
--RemainingOps;
20182018
}
20192019
CurOp += 2 * HasTwoConditionalOps;
20202020
}

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9180,7 +9180,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
91809180
: FastMathFlags();
91819181
auto *RedRecipe = new VPReductionRecipe(
91829182
Kind, FMFs, CurrentLinkI, PreviousLink, VecOp, CondOp,
9183-
CM.useOrderedReductions(RdxDesc), CurrentLinkI->getDebugLoc());
9183+
PhiR->isOrdered(), CurrentLinkI->getDebugLoc());
91849184
// Append the recipe to the end of the VPBasicBlock because we need to
91859185
// ensure that it comes after all of it's inputs, including CondOp.
91869186
// Delete CurrentLink as it will be invalid if its operand is replaced

0 commit comments

Comments
 (0)