Skip to content

Commit 8323ed0

Browse files
committed
fixup! Fix copy paste mistake
1 parent 1e4d039 commit 8323ed0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4961,7 +4961,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) {
49614961
// (Dividend - (Quotient * Divisor).
49624962
if (SDNode *RemNode = DAG.getNodeIfExists(ISD::SREM, N->getVTList(),
49634963
{ N0, N1 })) {
4964-
// If the udiv has the exact flag we shouldn't propagate it to the
4964+
// If the sdiv has the exact flag we shouldn't propagate it to the
49654965
// remainder node.
49664966
if (!N->getFlags().hasExact()) {
49674967
SDValue Mul = DAG.getNode(ISD::MUL, DL, VT, V, N1);

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9403,6 +9403,8 @@ SDValue SelectionDAG::getLoad(ISD::MemIndexedMode AM, ISD::LoadExtType ExtType,
94039403
void *IP = nullptr;
94049404
if (SDNode *E = FindNodeOrInsertPos(ID, dl, IP)) {
94059405
cast<LoadSDNode>(E)->refineAlignment(MMO);
9406+
if (cast<LoadSDNode>(E)->getMemOperand()->getRanges() && !MMO->getRanges())
9407+
cast<LoadSDNode>(E)->getMemOperand()->clearRanges();
94069408
return SDValue(E, 0);
94079409
}
94089410
auto *N = newSDNode<LoadSDNode>(dl.getIROrder(), dl.getDebugLoc(), VTs, AM,

0 commit comments

Comments
 (0)