Skip to content

Commit 257cbea

Browse files
committed
[DAG] Format DAGCombiner::mayAlias. NFC
1 parent 0b39825 commit 257cbea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -27843,11 +27843,10 @@ bool DAGCombiner::mayAlias(SDNode *Op0, SDNode *Op1) const {
2784327843
if (const auto *LSN = dyn_cast<LSBaseSDNode>(N)) {
2784427844
int64_t Offset = 0;
2784527845
if (auto *C = dyn_cast<ConstantSDNode>(LSN->getOffset()))
27846-
Offset = (LSN->getAddressingMode() == ISD::PRE_INC)
27847-
? C->getSExtValue()
27848-
: (LSN->getAddressingMode() == ISD::PRE_DEC)
27849-
? -1 * C->getSExtValue()
27850-
: 0;
27846+
Offset = (LSN->getAddressingMode() == ISD::PRE_INC) ? C->getSExtValue()
27847+
: (LSN->getAddressingMode() == ISD::PRE_DEC)
27848+
? -1 * C->getSExtValue()
27849+
: 0;
2785127850
uint64_t Size =
2785227851
MemoryLocation::getSizeOrUnknown(LSN->getMemoryVT().getStoreSize());
2785327852
return {LSN->isVolatile(),

0 commit comments

Comments
 (0)